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)
commit0be2136b67067617b36c70e525d7534108361e36
treef6d2c9fd2dcbf65a2a53aaac33d7949602ccb777
parenta1cf09031e641d3cceaca4a4dd20ef6a785bc9b3
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