]> Gentwo Git Trees - linux/.git/commit
crypto: hisilicon/qm - add concurrency protection for variable err_threshold
authornieweiqiang <nieweiqiang@huawei.com>
Sat, 25 Oct 2025 10:12:56 +0000 (18:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Oct 2025 09:50:42 +0000 (17:50 +0800)
commit1b5645e454615f5bdae432d0d0d4f94ad0d5c09e
tree7a254a03d50e33b8a8630e32827e47c352ade11c
parentf5a332980a6877c79863fbf5c16ae86555627ba6
crypto: hisilicon/qm - add concurrency protection for variable err_threshold

The isolate_strategy_store function is not protected
by a lock. If sysfs operations and functions that depend
on the err_threshold variable,such as qm_hw_err_isolate(),
execute concurrently, the outcome will be unpredictable.
Therefore, concurrency protection should be added for
the err_threshold variable.

Signed-off-by: nieweiqiang <nieweiqiang@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c