]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: Fix filp leak
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Mon, 18 Apr 2011 15:48:55 +0000 (11:48 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 19 Apr 2011 21:31:13 +0000 (17:31 -0400)
commita0b909e64f77538ef46cb4ae9a98481c47ca3eea
tree16504bb1b02626001ef0ef84991e87d0c95e1061
parent7f811f2ec5295be39a8eed5920fcc6ec1e025720
nfsd4: Fix filp leak

85854876ee1becb642a134ed35593a6a3d940039 (nfsd4: fix oops on lock failure)

The above patch breaks free path for stp->st_file. If stp was inserted
into sop->so_stateids, we have to free stp->st_file refcount. Because
stp->st_file refcount itself is taken whether or not any refcounts are
taken on the stp->st_file->fi_fds[].

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c