Home
last modified time | relevance | path

Searched refs:newfile (Results 1 – 2 of 2) sorted by relevance

/net/
Dsocket.c397 struct file *newfile; in sock_map_fd() local
402 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd()
403 if (likely(!IS_ERR(newfile))) { in sock_map_fd()
404 fd_install(fd, newfile); in sock_map_fd()
409 return PTR_ERR(newfile); in sock_map_fd()
1604 struct file *newfile; in SYSCALL_DEFINE4() local
1638 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in SYSCALL_DEFINE4()
1639 if (unlikely(IS_ERR(newfile))) { in SYSCALL_DEFINE4()
1640 err = PTR_ERR(newfile); in SYSCALL_DEFINE4()
1668 fd_install(newfd, newfile); in SYSCALL_DEFINE4()
[all …]
/net/sctp/
Dsocket.c4514 struct file *newfile; in sctp_getsockopt_peeloff() local
4534 newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff()
4535 if (unlikely(IS_ERR(newfile))) { in sctp_getsockopt_peeloff()
4538 return PTR_ERR(newfile); in sctp_getsockopt_peeloff()
4546 fput(newfile); in sctp_getsockopt_peeloff()
4552 fput(newfile); in sctp_getsockopt_peeloff()
4556 fd_install(retval, newfile); in sctp_getsockopt_peeloff()