Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322026
b: refs/heads/master
c: 48a87cc
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Aug 16, 2012
1 parent 34b8eb6 commit 8f25f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f796c20cf67aa54c9130d0dc41307c0025719b85
refs/heads/master: 48a87cc26c13b68f6cce4e9d769fcb17a6b3e4b8
4 changes: 4 additions & 0 deletions trunk/net/core/scm.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
for (i=0, cmfptr=(__force int __user *)CMSG_DATA(cm); i<fdmax;
i++, cmfptr++)
{
struct socket *sock;
int new_fd;
err = security_file_receive(fp[i]);
if (err)
Expand All @@ -281,6 +282,9 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
}
/* Bump the usage count and install the file. */
get_file(fp[i]);
sock = sock_from_file(fp[i], &err);
if (sock)
sock_update_netprioidx(sock->sk, current);
fd_install(new_fd, fp[i]);
}

Expand Down

0 comments on commit 8f25f66

Please sign in to comment.