diff options
| author | Kinglong Mee <[email protected]> | 2017-01-18 11:04:42 +0000 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2017-01-31 17:29:24 +0000 |
| commit | d19fb70dd68c4e960e2ac09b0b9c79dfdeefa726 (patch) | |
| tree | 8ce91162810ddf366f475ca22861c705aea115fa /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Linux 4.10-rc6 (diff) | |
| download | kernel-d19fb70dd68c4e960e2ac09b0b9c79dfdeefa726.tar.gz kernel-d19fb70dd68c4e960e2ac09b0b9c79dfdeefa726.zip | |
NFSD: Fix a null reference case in find_or_create_lock_stateid()
nfsd assigns the nfs4_free_lock_stateid to .sc_free in init_lock_stateid().
If nfsd doesn't go through init_lock_stateid() and put stateid at end,
there is a NULL reference to .sc_free when calling nfs4_put_stid(ns).
This patch let the nfs4_stid.sc_free assignment to nfs4_alloc_stid().
Cc: [email protected]
Fixes: 356a95ece7aa "nfsd: clean up races in lock stateid searching..."
Signed-off-by: Kinglong Mee <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
