diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-05-27 19:14:26 +0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-06-27 12:25:13 +0400 |
commit | 2eaaa8d28d3b2a17c02ff41ce526b16e65f9bce1 (patch) | |
tree | a1420654b2a17ebdbaf52ecbe2ea92520bded1e2 /fs | |
parent | 481956841e2e0f88b519267c91d86b7625e2a3af (diff) | |
download | linux-2eaaa8d28d3b2a17c02ff41ce526b16e65f9bce1.tar.xz |
nfsd4: fix FREE_STATEID lockowner leak
commit 48385408b45523d9a432c66292d47ef43efcbb94 upstream.
27b11428b7de ("nfsd4: remove lockowner when removing lock stateid")
introduced a memory leak.
Cc: stable@vger.kernel.org
Reported-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index ded7af3c45e1..5ae1dd340073 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -3705,7 +3705,7 @@ nfsd4_free_lock_stateid(struct nfs4_ol_stateid *stp) * correspondance, and we have to delete the lockowner when we * delete the lock stateid: */ - unhash_lockowner(lo); + release_lockowner(lo); return nfs_ok; } |