linux/drivers/dma/xilinx
Akinobu Mita db6a3d03e2 dmaengine: xilinx: avoid memory corruption for device_prep_dma_memcpy()
The device_prep_dma_memcpy() callback for this driver allocates a new
xilinx_dma_tx_descriptor whose TX segments list is initialized as empty,
but then gets invalid TX segment pointer by list_last_entry() from the
empty TX segments list and memory corruption happens by the attempt to
update the next descriptor in invalid TX segment pointer.

This removes unnecessary memory access for nonexistent tail TX segment
which causes memory corruption.

Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Kedareswara rao Appana <appana.durga.rao@xilinx.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2017-03-14 16:14:29 +05:30
..
Makefile dmaengine: Add Xilinx zynqmp dma engine driver support 2016-07-08 11:25:34 +05:30
xilinx_dma.c dmaengine: xilinx: avoid memory corruption for device_prep_dma_memcpy() 2017-03-14 16:14:29 +05:30
zynqmp_dma.c dmaengine: zynqmp_dma: add missing MODULE_LICENSE 2016-07-24 11:55:17 +05:30