dmaengine: PL08x: ensure all descriptors are freed when channel is released
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 May 2012 16:00:49 +0000 (17:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:16:10 +0000 (14:16 +0100)
commita068682cd69461911407411b4198248a87c583e2
tree731b0ea4ebb03afad70d29e8d1e000496e92f884
parent70f3ff434d7fc9a3cea5ebbb8a8d7aaa4c906125
dmaengine: PL08x: ensure all descriptors are freed when channel is released

Ensure all queued descriptors are freed when the channel is released,
ensuring we don't leak memory

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c