diff options
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 991e266bc7ae..0ee74c325320 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -361,7 +361,7 @@ static int sock_alloc_file(struct socket *sock, struct file **f, int flags) | |||
361 | if (unlikely(fd < 0)) | 361 | if (unlikely(fd < 0)) |
362 | return fd; | 362 | return fd; |
363 | 363 | ||
364 | path.dentry = d_alloc(sock_mnt->mnt_sb->s_root, &name); | 364 | path.dentry = d_alloc_pseudo(sock_mnt->mnt_sb, &name); |
365 | if (unlikely(!path.dentry)) { | 365 | if (unlikely(!path.dentry)) { |
366 | put_unused_fd(fd); | 366 | put_unused_fd(fd); |
367 | return -ENOMEM; | 367 | return -ENOMEM; |