Commit bd32390f authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by David S. Miller

[NET]: Accept should return ENFILE not EMFILE.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 433760c6
......@@ -1354,7 +1354,7 @@ asmlinkage long sys_accept(int fd, struct sockaddr __user *upeer_sockaddr, int _
if (!sock)
goto out;
err = -EMFILE;
err = -ENFILE;
if (!(newsock = sock_alloc()))
goto out_put;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment