]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qat - do not handle PFVF sources for qat_4xxx
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Wed, 17 Nov 2021 14:30:34 +0000 (14:30 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Dec 2021 02:11:54 +0000 (13:11 +1100)
commit81c08e32d1219da3de5c4b9ab1d32311ba7aab49
treeb06c6d9f5bfa0ff1d104b014ebca2cb8b06ecd9a
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
crypto: qat - do not handle PFVF sources for qat_4xxx

The QAT driver does not have support for PFVF interrupts for GEN4
devices, therefore report the vf2pf sources as 0.
This prevents a NULL pointer dereference in the function
adf_msix_isr_ae() if the device triggers a spurious interrupt.

Fixes: 32f8fdefe034 ("crypto: qat - fix handling of VF to PF interrupts")
Reported-by: Adam Guerin <adam.guerin@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c