Commit 85845448 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Ben Hutchings

nfsd4: fix FREE_STATEID lockowner leak

commit 48385408 upstream.

27b11428 ("nfsd4: remove lockowner when removing lock stateid")
introduced a memory leak.
Reported-by: default avatarJeff Layton <jeff.layton@primarydata.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 19475c82
...@@ -3393,7 +3393,7 @@ nfsd4_free_lock_stateid(struct nfs4_ol_stateid *stp) ...@@ -3393,7 +3393,7 @@ nfsd4_free_lock_stateid(struct nfs4_ol_stateid *stp)
* correspondance, and we have to delete the lockowner when we * correspondance, and we have to delete the lockowner when we
* delete the lock stateid: * delete the lock stateid:
*/ */
unhash_lockowner(lo); release_lockowner(lo);
return nfs_ok; return nfs_ok;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment