diff options
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 0e3ead7e11b9..6bc3babf6175 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -668,7 +668,8 @@ rpc_lookup_negative(char *path, struct nameidata *nd) | |||
668 | 668 | ||
669 | if ((error = rpc_lookup_parent(path, nd)) != 0) | 669 | if ((error = rpc_lookup_parent(path, nd)) != 0) |
670 | return ERR_PTR(error); | 670 | return ERR_PTR(error); |
671 | dentry = rpc_lookup_create(nd->dentry, nd->last.name, nd->last.len, 1); | 671 | dentry = rpc_lookup_create(nd->path.dentry, nd->last.name, nd->last.len, |
672 | 1); | ||
672 | if (IS_ERR(dentry)) | 673 | if (IS_ERR(dentry)) |
673 | rpc_release_path(nd); | 674 | rpc_release_path(nd); |
674 | return dentry; | 675 | return dentry; |
@@ -695,7 +696,7 @@ rpc_mkdir(char *path, struct rpc_clnt *rpc_client) | |||
695 | dentry = rpc_lookup_negative(path, &nd); | 696 | dentry = rpc_lookup_negative(path, &nd); |
696 | if (IS_ERR(dentry)) | 697 | if (IS_ERR(dentry)) |
697 | return dentry; | 698 | return dentry; |
698 | dir = nd.dentry->d_inode; | 699 | dir = nd.path.dentry->d_inode; |
699 | if ((error = __rpc_mkdir(dir, dentry)) != 0) | 700 | if ((error = __rpc_mkdir(dir, dentry)) != 0) |
700 | goto err_dput; | 701 | goto err_dput; |
701 | RPC_I(dentry->d_inode)->private = rpc_client; | 702 | RPC_I(dentry->d_inode)->private = rpc_client; |