Unverified Commit 1b6ac823 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 4b403c99 7fa549c0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1957,6 +1957,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)
@@ -1966,6 +1967,7 @@ int ip6_send_skb(struct sk_buff *skb)
				      IPSTATS_MIB_OUTDISCARDS);
	}

	rcu_read_unlock();
	return err;
}