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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:12 +0000 (18:28 +1100)
commit83dc1173d73f80cbce2fee4d308f51f87b2f26ae
tree1da2355cd093c0cb35dd07c777552c3315d24bc6
parent8d195e7a8ada68928f2aedb2c18302a4518fe68e
crypto: qat - fix error path in adf_isr_resource_alloc()

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>
drivers/crypto/qat/qat_common/adf_isr.c