Skip to content

Commit

Permalink
nfsd4: fix FREE_STATEID lockowner leak
Browse files Browse the repository at this point in the history
27b1142 ("nfsd4: remove lockowner when removing lock stateid")
introduced a memory leak.

Cc: [email protected]
Reported-by: Jeff Layton <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
J. Bruce Fields committed Jun 9, 2014
1 parent 83710fc commit 4838540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4838540

Please sign in to comment.