linux-stable/drivers/crypto/qat
Giovanni Cabiddu 6a49acfaca crypto: qat - fix undetected PFVF timeout in ACK loop
[ Upstream commit 5002200b4f ]

If the remote function did not ACK the reception of a message, the
function __adf_iov_putmsg() could detect it as a collision.

This was due to the fact that the collision and the timeout checks after
the ACK loop were in the wrong order. The timeout must be checked at the
end of the loop, so fix by swapping the order of the two checks.

Fixes: 9b768e8a39 ("crypto: qat - detect PFVF collision after ACK")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Co-developed-by: Marco Chiappero <marco.chiappero@intel.com>
Signed-off-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>
2022-01-27 10:53:50 +01:00
..
qat_c3xxx crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
qat_c3xxxvf crypto: qat - fix naming for init/shutdown VF to PF notifications 2021-09-15 09:50:26 +02:00
qat_c62x crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
qat_c62xvf crypto: qat - fix naming for init/shutdown VF to PF notifications 2021-09-15 09:50:26 +02:00
qat_common crypto: qat - fix undetected PFVF timeout in ACK loop 2022-01-27 10:53:50 +01:00
qat_dh895xcc crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
qat_dh895xccvf crypto: qat - fix naming for init/shutdown VF to PF notifications 2021-09-15 09:50:26 +02:00
Kconfig crypto: skcipher - rename the crypto_blkcipher module and kconfig option 2019-11-01 13:42:47 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00