]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: at_xdmac: clean used descriptor
authorLudovic Desroches <ludovic.desroches@atmel.com>
Tue, 15 Sep 2015 13:39:11 +0000 (15:39 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 1 Oct 2015 01:59:49 +0000 (07:29 +0530)
commit2d9e5e655a76c599d78646e9948382653cae52bb
treef6d2c9fd2dcbf65a2a53aaac33d7949602ccb777
parent78e501fdb1e44c56dba6f6a6215265bef558a29c
dmaengine: at_xdmac: clean used descriptor

When putting back a descriptor to the free descs list, some fields are
not set to 0, it can cause bugs if someone uses it without having this
in mind.
Descriptor are not put back one by one so it is easier to clean
descriptors when we request them.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: stable@vger.kernel.org #4.2
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c