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 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); ··· 732 731 rpci->flags = flags; 733 732 rpci->ops = ops; 734 733 inode_dir_notify(dir, DN_CREATE); 734 + dget(dentry); 735 735 out: 736 736 mutex_unlock(&dir->i_mutex); 737 737 rpc_release_path(&nd); 738 - return dget(dentry); 738 + return dentry; 739 739 err_dput: 740 740 dput(dentry); 741 741 dentry = ERR_PTR(-ENOMEM);