mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
nfsd4: fix FREE_STATEID lockowner leak
commit48385408b4upstream.27b11428b7("nfsd4: remove lockowner when removing lock stateid") introduced a memory leak. Reported-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a01b18de19
commit
7e2f54792d
@@ -3726,7 +3726,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user