Home
last modified time | relevance | path

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

/net/
Dsocket.c394 struct file *newfile; in sock_map_fd() local
399 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd()
400 if (likely(!IS_ERR(newfile))) { in sock_map_fd()
401 fd_install(fd, newfile); in sock_map_fd()
406 return PTR_ERR(newfile); in sock_map_fd()
1445 struct file *newfile; in SYSCALL_DEFINE4() local
1479 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in SYSCALL_DEFINE4()
1480 if (IS_ERR(newfile)) { in SYSCALL_DEFINE4()
1481 err = PTR_ERR(newfile); in SYSCALL_DEFINE4()
1509 fd_install(newfd, newfile); in SYSCALL_DEFINE4()
[all …]
/net/sctp/
Dsocket.c4509 struct file *newfile; in sctp_getsockopt_peeloff() local
4529 newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff()
4530 if (IS_ERR(newfile)) { in sctp_getsockopt_peeloff()
4533 return PTR_ERR(newfile); in sctp_getsockopt_peeloff()
4541 fput(newfile); in sctp_getsockopt_peeloff()
4547 fput(newfile); in sctp_getsockopt_peeloff()
4551 fd_install(retval, newfile); in sctp_getsockopt_peeloff()