Unverified Commit baf46725 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 5d095d5b a6521d31
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1940,6 +1940,7 @@ int ip6_send_skb(struct sk_buff *skb)
	struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
	int err;

	rcu_read_lock();
	err = ip6_local_out(net, skb->sk, skb);
	if (err) {
		if (err > 0)
@@ -1949,6 +1950,7 @@ int ip6_send_skb(struct sk_buff *skb)
				      IPSTATS_MIB_OUTDISCARDS);
	}

	rcu_read_unlock();
	return err;
}