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

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

nfsd4: fix FREE_STATEID lockowner leak



27b11428 ("nfsd4: remove lockowner when removing lock stateid")
introduced a memory leak.

Cc: stable@vger.kernel.org
Reported-by: default avatarJeff Layton <jeff.layton@primarydata.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 83710fc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}