Unverified Commit 606a27d2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents d0103b30 c41870da
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2471,6 +2471,9 @@ static int tun_xdp_one(struct tun_struct *tun,
	bool skb_xdp = false;
	struct page *page;

	if (unlikely(datasize < ETH_HLEN))
		return -EINVAL;

	xdp_prog = rcu_dereference(tun->xdp_prog);
	if (xdp_prog) {
		if (gso->gso_type) {