Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61588
b: refs/heads/master
c: 4ac4efc
h: refs/heads/master
v: v3
  • Loading branch information
Josef 'Jeff' Sipek authored and Linus Torvalds committed Jul 19, 2007
1 parent 6c94a31 commit 1c11a5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16f1820028d660d9da9c03b2ae7e98253c11795b
refs/heads/master: 4ac4efc1f5575a268417f80ef4059aee383f8331
16 changes: 7 additions & 9 deletions trunk/net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,21 +460,19 @@ static struct dentry_operations rpc_dentry_operations = {
static int
rpc_lookup_parent(char *path, struct nameidata *nd)
{
struct vfsmount *mnt;

if (path[0] == '\0')
return -ENOENT;
nd->mnt = rpc_get_mount();
if (IS_ERR(nd->mnt)) {

mnt = rpc_get_mount();
if (IS_ERR(mnt)) {
printk(KERN_WARNING "%s: %s failed to mount "
"pseudofilesystem \n", __FILE__, __FUNCTION__);
return PTR_ERR(nd->mnt);
return PTR_ERR(mnt);
}
mntget(nd->mnt);
nd->dentry = dget(rpc_mount->mnt_root);
nd->last_type = LAST_ROOT;
nd->flags = LOOKUP_PARENT;
nd->depth = 0;

if (path_walk(path, nd)) {
if (vfs_path_lookup(mnt->mnt_root, mnt, path, LOOKUP_PARENT, nd)) {
printk(KERN_WARNING "%s: %s failed to find path %s\n",
__FILE__, __FUNCTION__, path);
rpc_put_mount();
Expand Down

0 comments on commit 1c11a5e

Please sign in to comment.