aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorTrond Myklebust <[email protected]>2018-01-12 22:42:30 +0000
committerJ. Bruce Fields <[email protected]>2018-02-05 22:13:16 +0000
commit4f1764172a0aa7395d12b96cae640ca1438c5085 (patch)
treea29f5c6339d179a7975c76c221290c85137a193b /drivers/acpi/cppc_acpi.c
parentsunrpc: remove dead code in svc_sock_setbufsize (diff)
downloadkernel-4f1764172a0aa7395d12b96cae640ca1438c5085.tar.gz
kernel-4f1764172a0aa7395d12b96cae640ca1438c5085.zip
nfsd: Detect unhashed stids in nfsd4_verify_open_stid()
The state of the stid is guaranteed by 2 locks: - The nfs4_client 'cl_lock' spinlock - The nfs4_ol_stateid 'st_mutex' mutex so it is quite possible for the stid to be unhashed after lookup, but before calling nfsd4_lock_ol_stateid(). So we do need to check for a zero value for 'sc_type' in nfsd4_verify_open_stid(). Signed-off-by: Trond Myklebust <[email protected]> Tested-by: Checuk Lever <[email protected]> Cc: [email protected] Fixes: 659aefb68eca "nfsd: Ensure we don't recognise lock stateids..." Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions