提交 7a8e1dc3 编写于 作者: T Trond Myklebust

NFS: Fix a page leak in uncached_readdir()

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 e7c58e97
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册