crypto: hisilicon/hpre - fix "hpre_ctx_init" resource leak
mainline inclusion from mainline-v5.13-rc1 commit 670fefb9 category: bugfix bugzilla: 173981 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=670fefb9240950fe9e3e4740039a7e13e5910470 ---------------------------------------------------------------------- When calling "hpre_ctx_set" fails, stop and put qp, otherwise will leak qp resource. Signed-off-by: NHui Tang <tanghui20@huawei.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NMingqiang Ling <lingmingqiang@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录