commit | a96e5b90804be8b540d30f4a1453fc87f95b3149 | [log] [tgz] |
---|---|---|
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | Mon Apr 18 11:48:55 2011 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Tue Apr 19 17:31:13 2011 -0400 |
tree | 16504bb1b02626001ef0ef84991e87d0c95e1061 | |
parent | 4ee63624fd927376b97ead3a8d00728d437bc8e8 [diff] |
nfsd4: Fix filp leak 23fcf2ec93fb8573a653408316af599939ff9a8e (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>