Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24ffb938 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

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: default avatarJ. Bruce Fields <bfields@redhat.com>
parent a1dc6955
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2983,6 +2983,7 @@ nfs4_open_delegation(struct net *net, struct svc_fh *fh,
	}
	return;
out_free:
	unhash_stid(&dp->dl_stid);
	nfs4_put_delegation(dp);
out_no_deleg:
	flag = NFS4_OPEN_DELEGATE_NONE;