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>
This commit is contained in:
Paolo Abeni
2016-11-04 11:28:58 +01:00
committed by David S. Miller
parent cd2c0f4540
commit ad959036a7
4 changed files with 8 additions and 7 deletions

View File

@@ -425,7 +425,7 @@ try_again:
if (is_udp4) {
if (inet->cmsg_flags)
ip_cmsg_recv_offset(msg, skb,
ip_cmsg_recv_offset(msg, sk, skb,
sizeof(struct udphdr), off);
} else {
if (np->rxopt.all)