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:

committed by
David S. Miller

parent
cd2c0f4540
commit
ad959036a7
@@ -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)
|
||||
|
Reference in New Issue
Block a user