Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21019
b: refs/heads/master
c: cc9a06c
h: refs/heads/master
i:
  21017: 2d8c376
  21015: a8f361f
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Mar 13, 2006
1 parent 8803465 commit c4021e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: f8dc01f543f28253abeef649987249210d8db3cc
refs/heads/master: cc9a06cd8d6fbb69b4d3c46760c132cfe312fb85
5 changes: 3 additions & 2 deletions trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,9 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock,
msg->msg_namelen = sizeof(*addr);
}

if (nlk->flags & NETLINK_RECV_PKTINFO)
netlink_cmsg_recv_pktinfo(msg, skb);

if (NULL == siocb->scm) {
memset(&scm, 0, sizeof(scm));
siocb->scm = &scm;
Expand All @@ -1205,8 +1208,6 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock,
netlink_dump(sk);

scm_recv(sock, msg, siocb->scm, flags);
if (nlk->flags & NETLINK_RECV_PKTINFO)
netlink_cmsg_recv_pktinfo(msg, skb);

out:
netlink_rcv_wake(sk);
Expand Down

0 comments on commit c4021e5

Please sign in to comment.