Doh!
Unified · Split
| @@ -667,10 +667,11 @@ rpc_mkdir(char *path, struct rpc_clnt *rpc_client) · 666 unmodified lines | ||
| 667 | 667 | RPCAUTH_info, RPCAUTH_EOF); |
| 668 | 668 | if (error) |
| 669 | 669 | goto err_depopulate; |
| 670 | + dget(dentry); | |
| 670 | 671 | out: |
| 671 | 672 | mutex_unlock(&dir->i_mutex); |
| 672 | 673 | rpc_release_path(&nd); |
| 673 | − return dget(dentry); | |
| 674 | + return dentry; | |
| 674 | 675 | err_depopulate: |
| 675 | 676 | rpc_depopulate(dentry); |
| 676 | 677 | __rpc_rmdir(dir, dentry); |
| @@ -731,10 +732,11 @@ rpc_mkpipe(char *path, void *private, struct rpc_pipe_ops *ops, int flags) · 54 unmodified lines | ||
| 731 | 732 | rpci->flags = flags; |
| 732 | 733 | rpci->ops = ops; |
| 733 | 734 | inode_dir_notify(dir, DN_CREATE); |
| 735 | + dget(dentry); | |
| 734 | 736 | out: |
| 735 | 737 | mutex_unlock(&dir->i_mutex); |
| 736 | 738 | rpc_release_path(&nd); |
| 737 | − return dget(dentry); | |
| 739 | + return dentry; | |
| 738 | 740 | err_dput: |
| 739 | 741 | dput(dentry); |
| 740 | 742 | dentry = ERR_PTR(-ENOMEM); |