Commit adbaa8f9 authored by Nivas Varadharajan Mugunthakumar's avatar Nivas Varadharajan Mugunthakumar Committed by Greg Kroah-Hartman
Browse files

crypto: qat - extend scope of lock in adf_cfg_add_key_value_param()



[ Upstream commit 6424da7d ]

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: 92bf269f ("crypto: qat - change behaviour of adf_cfg_add_key_value_param()")
Signed-off-by: default avatarNivas Varadharajan Mugunthakumar <nivasx.varadharajan.mugunthakumar@intel.com>
Signed-off-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 846ee3b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment