Lines Matching refs:newfile
487 struct file *newfile; in sock_map_fd() local
494 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd()
495 if (!IS_ERR(newfile)) { in sock_map_fd()
496 fd_install(fd, newfile); in sock_map_fd()
501 return PTR_ERR(newfile); in sock_map_fd()
1907 struct file *newfile; in do_accept() local
1930 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in do_accept()
1931 if (IS_ERR(newfile)) in do_accept()
1932 return newfile; in do_accept()
1956 return newfile; in do_accept()
1958 fput(newfile); in do_accept()
1965 struct file *newfile; in __sys_accept4_file() local
1978 newfile = do_accept(file, 0, upeer_sockaddr, upeer_addrlen, in __sys_accept4_file()
1980 if (IS_ERR(newfile)) { in __sys_accept4_file()
1982 return PTR_ERR(newfile); in __sys_accept4_file()
1984 fd_install(newfd, newfile); in __sys_accept4_file()