diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-11-20 18:24:46 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-11-22 18:24:45 (GMT) |
commit | 7a8e1dc34f52fd2927dbf7e520d7cd8eadc51336 (patch) | |
tree | de5e01e628e0fec4a20e335ef5a3163e307ba3fa /fs/nfs | |
parent | e7c58e974a0318fcca5368e7b3570e10e9ae9028 (diff) | |
download | linux-fsl-qoriq-7a8e1dc34f52fd2927dbf7e520d7cd8eadc51336.tar.xz |
NFS: Fix a page leak in uncached_readdir()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/dir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 42e66e9..353f47c 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -763,13 +763,14 @@ int uncached_readdir(nfs_readdir_descriptor_t *desc, void *dirent, goto out; } + desc->page_index = 0; + desc->page = page; + if (nfs_readdir_xdr_to_array(desc, page, inode) == -1) { status = -EIO; goto out_release; } - desc->page_index = 0; - desc->page = page; status = nfs_do_filldir(desc, dirent, filldir); out: |