socketpair(): allocate descriptors first
authorAl Viro <viro@ZenIV.linux.org.uk>
Tue, 5 Dec 2017 23:28:38 +0000 (23:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 23:39:28 +0000 (18:39 -0500)
commit016a266bdfeda268afb2228b6217fd4771334635
treef22af8039ab986464ddcb5c7176eb584486d86ca
parenta5739435b5a3b8c449f8844ecd71a3b1e89f0a33
socketpair(): allocate descriptors first

simplifies failure exits considerably...

Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c