]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: qat - fix error path in adf_isr_resource_alloc()
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 25 Mar 2021 08:34:18 +0000 (08:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:43 +0000 (10:49 +0200)
commitd4d1dd27a3fe99f5e35a792db46934a41a1f2b86
tree2d66bc91fd1641cd7e4a3d72e1053362d0407148
parentde6f9fb2f8c14d5355a608356ef5d60cd15174fd
crypto: qat - fix error path in adf_isr_resource_alloc()

[ Upstream commit 83dc1173d73f80cbce2fee4d308f51f87b2f26ae ]

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: 7afa232e76ce ("crypto: qat - Intel(R) QAT DH895xcc accelerator")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Marco Chiappero <marco.chiappero@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/qat/qat_common/adf_isr.c