diff options
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/socket.c b/net/socket.c index 9963a0b53a64..dd2c247c99e3 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -373,7 +373,7 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) | |||
373 | 373 | ||
374 | file = alloc_file(&path, FMODE_READ | FMODE_WRITE, | 374 | file = alloc_file(&path, FMODE_READ | FMODE_WRITE, |
375 | &socket_file_ops); | 375 | &socket_file_ops); |
376 | if (unlikely(IS_ERR(file))) { | 376 | if (IS_ERR(file)) { |
377 | /* drop dentry, keep inode */ | 377 | /* drop dentry, keep inode */ |
378 | ihold(d_inode(path.dentry)); | 378 | ihold(d_inode(path.dentry)); |
379 | path_put(&path); | 379 | path_put(&path); |
@@ -1303,7 +1303,7 @@ SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol, | |||
1303 | } | 1303 | } |
1304 | 1304 | ||
1305 | newfile1 = sock_alloc_file(sock1, flags, NULL); | 1305 | newfile1 = sock_alloc_file(sock1, flags, NULL); |
1306 | if (unlikely(IS_ERR(newfile1))) { | 1306 | if (IS_ERR(newfile1)) { |
1307 | err = PTR_ERR(newfile1); | 1307 | err = PTR_ERR(newfile1); |
1308 | goto out_put_unused_both; | 1308 | goto out_put_unused_both; |
1309 | } | 1309 | } |
@@ -1467,7 +1467,7 @@ SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, | |||
1467 | goto out_put; | 1467 | goto out_put; |
1468 | } | 1468 | } |
1469 | newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); | 1469 | newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); |
1470 | if (unlikely(IS_ERR(newfile))) { | 1470 | if (IS_ERR(newfile)) { |
1471 | err = PTR_ERR(newfile); | 1471 | err = PTR_ERR(newfile); |
1472 | put_unused_fd(newfd); | 1472 | put_unused_fd(newfd); |
1473 | sock_release(newsock); | 1473 | sock_release(newsock); |