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

Commit 7b2e497a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller
Browse files

[NET]: Assign skb->dev in netdev_alloc_skb

parent 766ea8cc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -268,8 +268,10 @@ struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
	struct sk_buff *skb;

	skb = alloc_skb(length + NET_SKB_PAD, gfp_mask);
	if (likely(skb))
	if (likely(skb)) {
		skb_reserve(skb, NET_SKB_PAD);
		skb->dev = dev;
	}
	return skb;
}