Unverified Commit 4b9550b1 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10060 ipvlan: Dont Use skb->sk in ipvlan_process_v{4,6}_outbound

parents 0bf719c2 eccba84b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -440,7 +440,7 @@ static noinline_for_stack int ipvlan_process_v4_outbound(struct sk_buff *skb)

	memset(IPCB(skb), 0, sizeof(*IPCB(skb)));

	err = ip_local_out(net, skb->sk, skb);
	err = ip_local_out(net, NULL, skb);
	if (unlikely(net_xmit_eval(err)))
		dev->stats.tx_errors++;
	else
@@ -495,7 +495,7 @@ static int ipvlan_process_v6_outbound(struct sk_buff *skb)

	memset(IP6CB(skb), 0, sizeof(*IP6CB(skb)));

	err = ip6_local_out(dev_net(dev), skb->sk, skb);
	err = ip6_local_out(dev_net(dev), NULL, skb);
	if (unlikely(net_xmit_eval(err)))
		dev->stats.tx_errors++;
	else