Searched refs:newfile (Results 1 – 2 of 2) sorted by relevance
397 struct file *newfile; in sock_map_fd() local402 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() local1638 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 …]
4514 struct file *newfile; in sctp_getsockopt_peeloff() local4534 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()