diff options
author | Paolo Abeni <pabeni@redhat.com> | 2016-11-04 11:28:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-07 19:24:41 +0100 |
commit | ad959036a70890bea121403c6a4e373dff5b7311 (patch) | |
tree | 4723d6b548ceb3eb57cc6d7262533103b1ff8201 /net/ipv4/udp.c | |
parent | net: Update raw socket bind to consider l3 domain (diff) | |
download | linux-ad959036a70890bea121403c6a4e373dff5b7311.tar.xz linux-ad959036a70890bea121403c6a4e373dff5b7311.zip |
net/sock: add an explicit sk argument for ip_cmsg_recv_offset()
So that we can use it even after orphaining the skbuff.
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index a32a890294b1..28a0165cb848 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1421,7 +1421,7 @@ try_again: *addr_len = sizeof(*sin); } if (inet->cmsg_flags) - ip_cmsg_recv_offset(msg, skb, sizeof(struct udphdr), off); + ip_cmsg_recv_offset(msg, sk, skb, sizeof(struct udphdr), off); err = copied; if (flags & MSG_TRUNC) |