]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon - fix missed error branch
authorYang Shen <shenyang39@huawei.com>
Sat, 31 Aug 2024 09:50:07 +0000 (17:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Sep 2024 06:50:46 +0000 (14:50 +0800)
commitf386dc64e1a5d3dcb84579119ec350ab026fea88
treef7ea56252a22adb744cfc642ee437ab33d5a66df
parent3401f63e72596dcb7d912a5b67b4291643cc1034
crypto: hisilicon - fix missed error branch

If an error occurs in the process after the SGL is mapped
successfully, it need to unmap the SGL.

Otherwise, memory problems may occur.

Signed-off-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sgl.c