From: J. Bruce Fields Date: Tue, 27 May 2014 15:14:26 +0000 (-0400) Subject: nfsd4: fix FREE_STATEID lockowner leak X-Git-Tag: v3.16-rc1~58^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=48385408b45523d9a432c66292d47ef43efcbb94;p=uclinux-h8%2Flinux.git nfsd4: fix FREE_STATEID lockowner leak 27b11428b7de ("nfsd4: remove lockowner when removing lock stateid") introduced a memory leak. Cc: stable@vger.kernel.org Reported-by: Jeff Layton Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index e5197d947b9e..c0d45cec9958 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -3743,7 +3743,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; }