linux-stable/drivers/crypto/hisilicon
Yunfeng Ye 7e5a18b309 crypto: hisilicon - Matching the dma address for dma_pool_free()
[ Upstream commit e00371af1d ]

When dma_pool_zalloc() fail in sec_alloc_and_fill_hw_sgl(),
dma_pool_free() is invoked, but the parameters that sgl_current and
sgl_current->next_sgl is not match.

Using sec_free_hw_sgl() instead of the original free routine.

Fixes: 915e4e8413 ("crypto: hisilicon - SEC security accelerator driver")
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:14 +01:00
..
sec crypto: hisilicon - Matching the dma address for dma_pool_free() 2020-01-27 14:51:14 +01:00
Kconfig
Makefile