nfsd4: fix FREE_STATEID lockowner leak
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 27 May 2014 15:14:26 +0000 (11:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:54:14 +0000 (18:54 -0700)
commit1dd6ffc6284cd2d81b667e58684701cf7d1c3d12
treee3476af049032559e07903cea96e2f50df584f9e
parentf1631672d6cbf0d836a4eb3617a26add4281d4a3
nfsd4: fix FREE_STATEID lockowner leak

commit 48385408b45523d9a432c66292d47ef43efcbb94 upstream.

27b11428b7de ("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>
fs/nfsd/nfs4state.c