diff options
author | Maksim Lukoshkov <maksim.lukoshkov@intel.com> | 2021-09-01 18:36:07 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-09-17 11:05:12 +0800 |
commit | 9832fdc917de0f28772558688d7fa6c097c9c6cc (patch) | |
tree | 2cb9e8cb4a353dca3486f79667610c09a23d6611 /drivers/crypto/qat/qat_common/adf_admin.c | |
parent | 0e64dcd7c94b94f90b820bfbe57bbcea8bf21545 (diff) |
crypto: qat - free irqs only if allocated
Change the irq allocation logic so that it is possible to free only the
allocated irqs in case of error.
A new flag is introduced for every PF/VF interrupt. This flag is set to
"true" only when the interrupt is requested.
During clean up, devm_free_irq() is only called if this flag is set.
Signed-off-by: Maksim Lukoshkov <maksim.lukoshkov@intel.com>
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_common/adf_admin.c')
0 files changed, 0 insertions, 0 deletions