commit | a49411959ea6d4915a9fd2a7eb5ba220e6284e9a | [log] [tgz] |
---|---|---|
author | Hadar Gat <hadar.gat@arm.com> | Tue Jan 15 15:43:13 2019 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jan 25 18:41:51 2019 +0800 |
tree | 0a9f0320ab3fcce71bbfd8c6f68f8c224af237e1 | |
parent | 32be4c5b0fd2679b488619fe7dc8a15ef477a38a [diff] |
crypto: ccree - fix free of unallocated mlli buffer In cc_unmap_aead_request(), call dma_pool_free() for mlli buffer only if an item is allocated from the pool and not always if there is a pool allocated. This fixes a kernel panic when trying to free a non-allocated item. Cc: stable@vger.kernel.org Signed-off-by: Hadar Gat <hadar.gat@arm.com> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>