]> 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)
commit198419515a5053a442050c79b4b7e8e7b69c0109
treef6d2c9fd2dcbf65a2a53aaac33d7949602ccb777
parent39c0d002f21bd8adea6b0c7d31a8f970351e0dcc
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