crypto: hisilicon/qm - flush all work before driver removed
authorWeili Qian <qianweili@huawei.com>
Fri, 14 Jul 2023 11:41:35 +0000 (19:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Jul 2023 01:59:38 +0000 (13:59 +1200)
commit5cd4ed98cfb743cd8f363ccc674313c14c17acd5
tree2f83044c07fac4eaa4fa28c01c046d3a2011358c
parent1e3b2e805587ab5aa3ecdfe6339ad120ceaef7d3
crypto: hisilicon/qm - flush all work before driver removed

Before removing the driver, flush inter-function communication
work, and subsequent communication work is not processed.
This prevents communication threads from accessing released memory.

Fixes: ("crypto: hisilicon/qm - enable PF and VFs communication")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c