summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2012-12-12 21:24:12 +0100
committerJ. Bruce Fields <bfields@redhat.com>2012-12-18 04:00:28 +0100
commit24ffb93872f7363a01ad639e3c8a9889b46c3f0a (patch)
treead6e3f199736a84276da2649fca0e8bdce7ffc15
parentnfsd4: free_stateid can use the current stateid (diff)
downloadlinux-24ffb93872f7363a01ad639e3c8a9889b46c3f0a.tar.xz
linux-24ffb93872f7363a01ad639e3c8a9889b46c3f0a.zip
nfsd4: don't leave freed stateid hashed
Note the stateid is hashed early on in init_stid(), but isn't currently being unhashed on error paths. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfs4state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 8e127b39d323..ac8ed96c4199 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2983,6 +2983,7 @@ out:
}
return;
out_free:
+ unhash_stid(&dp->dl_stid);
nfs4_put_delegation(dp);
out_no_deleg:
flag = NFS4_OPEN_DELEGATE_NONE;