]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:17 +0000 (14:49 -0700)
commitb111b3a634eaff62f655977763d33f1d54cfa846
treefa106c2e80bac916fc95a58d02edf0452a141a83
parentf788de2664c2640307b93d658e2bf54f79f1192d
dmaengine: at_xdmac: clean used descriptor

commit 0be2136b67067617b36c70e525d7534108361e36 upstream.

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>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_xdmac.c