SUNRPC: Fix obvious refcounting bugs in rpc_pipefs.

Doh!

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from 496f408f2f0e7ee5481a7c2222189be6c4f5aa6c commit)

+4 -2
+4 -2
net/sunrpc/rpc_pipe.c
··· 667 RPCAUTH_info, RPCAUTH_EOF); 668 if (error) 669 goto err_depopulate; 670 out: 671 mutex_unlock(&dir->i_mutex); 672 rpc_release_path(&nd); 673 - return dget(dentry); 674 err_depopulate: 675 rpc_depopulate(dentry); 676 __rpc_rmdir(dir, dentry); ··· 732 rpci->flags = flags; 733 rpci->ops = ops; 734 inode_dir_notify(dir, DN_CREATE); 735 out: 736 mutex_unlock(&dir->i_mutex); 737 rpc_release_path(&nd); 738 - return dget(dentry); 739 err_dput: 740 dput(dentry); 741 dentry = ERR_PTR(-ENOMEM);
··· 667 RPCAUTH_info, RPCAUTH_EOF); 668 if (error) 669 goto err_depopulate; 670 + dget(dentry); 671 out: 672 mutex_unlock(&dir->i_mutex); 673 rpc_release_path(&nd); 674 + return dentry; 675 err_depopulate: 676 rpc_depopulate(dentry); 677 __rpc_rmdir(dir, dentry); ··· 731 rpci->flags = flags; 732 rpci->ops = ops; 733 inode_dir_notify(dir, DN_CREATE); 734 + dget(dentry); 735 out: 736 mutex_unlock(&dir->i_mutex); 737 rpc_release_path(&nd); 738 + return dentry; 739 err_dput: 740 dput(dentry); 741 dentry = ERR_PTR(-ENOMEM);