Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72861
b: refs/heads/master
c: bf3c23d
h: refs/heads/master
i:
  72859: 5f2a8ba
v: v3
  • Loading branch information
David S. Miller committed Oct 30, 2007
1 parent e91b33c commit e56822a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29b67497f256399c4aa2adec27ab7ba24bba44e8
refs/heads/master: bf3c23d171e35e6e168074a1514b0acd59cfd81a
5 changes: 4 additions & 1 deletion trunk/net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1250,11 +1250,14 @@ asmlinkage long sys_socketpair(int family, int type, int protocol,
goto out_release_both;

fd1 = sock_alloc_fd(&newfile1);
if (unlikely(fd1 < 0))
if (unlikely(fd1 < 0)) {
err = fd1;
goto out_release_both;
}

fd2 = sock_alloc_fd(&newfile2);
if (unlikely(fd2 < 0)) {
err = fd2;
put_filp(newfile1);
put_unused_fd(fd1);
goto out_release_both;
Expand Down

0 comments on commit e56822a

Please sign in to comment.