]> git.karo-electronics.de Git - linux-beck.git/commit
dmaengine: xilinx: vdma: Check if the segment list is empty in a descriptor
authorSrikanth Thokala <srikanth.thokala@xilinx.com>
Wed, 5 Nov 2014 18:37:00 +0000 (20:37 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 07:41:47 +0000 (13:11 +0530)
commit049c0d577d63c6a95edd5f59fa192f89f2674a64
treea5d6718666fbddbe9517f1d23e86a276222a89ee
parentcd166280b7a1d74248897b48aea39217015ee8c2
dmaengine: xilinx: vdma: Check if the segment list is empty in a descriptor

The segment list in a descriptor should be checked for empty, else
it will try to access invalid address for the first call.  This
patch fixes this issue.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_vdma.c