summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2015-10-18 17:24:57 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-20 22:11:09 +0800
commit8c07f3a8c487df241f5e809e8f6d5dd7c9d75b54 (patch)
tree611dc873e4151a7957b9fd0a5ff1c06e68dcc28c /arch/arm
parent8efbc2c0f6b4e52e384ecb1714511f0194c4d56a (diff)
downloadop-kernel-dev-8c07f3a8c487df241f5e809e8f6d5dd7c9d75b54.zip
op-kernel-dev-8c07f3a8c487df241f5e809e8f6d5dd7c9d75b54.tar.gz
crypto: marvell/cesa - fix memory leak
To: Boris Brezillon <boris.brezillon@free-electrons.com>,Arnaud Ebalard <arno@natisbad.org>,Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,Jason Cooper <jason@lakedaemon.net> The local chain variable is not cleaned up if an error occurs in the middle of DMA chain creation. Fix that by dropping the local chain variable and using the dreq->chain field which will be cleaned up by mv_cesa_dma_cleanup() in case of errors. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud