Commit 4bef4172 authored by Don Fry's avatar Don Fry Committed by Jeff Garzik

[PATCH] back out netdev_priv() for loopback

Please apply this fix to backout an erroneous change in loopback.c
The statistics structure is allocated separately from the
loopback_dev structure, and the current code overwrites something
other than the statistics.  In my case the scsi_cmd_pool structure.
parent 19250a63
...@@ -123,7 +123,7 @@ static void emulate_large_send_offload(struct sk_buff *skb) ...@@ -123,7 +123,7 @@ static void emulate_large_send_offload(struct sk_buff *skb)
*/ */
static int loopback_xmit(struct sk_buff *skb, struct net_device *dev) static int loopback_xmit(struct sk_buff *skb, struct net_device *dev)
{ {
struct net_device_stats *stats = netdev_priv(dev); struct net_device_stats *stats = dev->priv;
skb_orphan(skb); skb_orphan(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment