diff options
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 10a17a37ec4e..5356d95343f3 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -466,7 +466,7 @@ static int __rpc_create_common(struct inode *dir, struct dentry *dentry, | |||
466 | { | 466 | { |
467 | struct inode *inode; | 467 | struct inode *inode; |
468 | 468 | ||
469 | BUG_ON(!d_unhashed(dentry)); | 469 | d_drop(dentry); |
470 | inode = rpc_get_inode(dir->i_sb, mode); | 470 | inode = rpc_get_inode(dir->i_sb, mode); |
471 | if (!inode) | 471 | if (!inode) |
472 | goto out_err; | 472 | goto out_err; |