]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: qat - extend scope of lock in adf_cfg_add_key_value_param()
authorNivas Varadharajan Mugunthakumar <nivasx.varadharajan.mugunthakumar@intel.com>
Tue, 25 Jun 2024 14:38:50 +0000 (15:38 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Jul 2024 00:20:00 +0000 (10:20 +1000)
commit6424da7d8b938fe66e7e771eaa949bc7b6c29c00
tree4c18a39d2ed1faf14fbf8d1182ee75c0ef119353
parentd26cb4f53dab654d337595cd247e6c435b571ca7
crypto: qat - extend scope of lock in adf_cfg_add_key_value_param()

The function adf_cfg_add_key_value_param() attempts to access and modify
the key value store of the driver without locking.

Extend the scope of cfg->lock to avoid a potential race condition.

Fixes: 92bf269fbfe9 ("crypto: qat - change behaviour of adf_cfg_add_key_value_param()")
Signed-off-by: Nivas Varadharajan Mugunthakumar <nivasx.varadharajan.mugunthakumar@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_cfg.c