Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaf58060 authored by Chen-Li Tien's avatar Chen-Li Tien Committed by David S. Miller
Browse files

[PKTGEN]: Fix oops when used with balance-tlb bonding

parent 8d1502de
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2149,6 +2149,8 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
	skb->mac.raw = ((u8 *) iph) - 14 - pkt_dev->nr_labels*sizeof(u32);
	skb->dev = odev;
	skb->pkt_type = PACKET_HOST;
	skb->nh.iph = iph;
	skb->h.uh = udph;

	if (pkt_dev->nfrags <= 0)
		pgh = (struct pktgen_hdr *)skb_put(skb, datalen);