From: OGAWA Hirofumi Date: Mon, 18 Apr 2011 15:48:55 +0000 (-0400) Subject: nfsd4: Fix filp leak X-Git-Tag: v2.6.39-rc5~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96e5b90804be8b540d30f4a1453fc87f95b3149;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed