crypto: qat - fix error path in adf_isr_resource_alloc()
stable inclusion from stable-5.10.37 commit 36babddef7821a6b4ab6037d5ab8904d1a02a873 bugzilla: 51868 CVE: NA -------------------------------- [ Upstream commit 83dc1173 ] The function adf_isr_resource_alloc() is not unwinding correctly in case of error. This patch fixes the error paths and propagate the errors to the caller. Fixes: 7afa232e ("crypto: qat - Intel(R) QAT DH895xcc accelerator") Signed-off-by: NGiovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: NMarco Chiappero <marco.chiappero@intel.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录