]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] back out netdev_priv() for loopback
authorDon Fry <brazilnut@us.ibm.com>
Wed, 17 Mar 2004 15:12:15 +0000 (10:12 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 17 Mar 2004 15:12:15 +0000 (10:12 -0500)
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.

drivers/net/loopback.c

index 3cadef9cc29cb54535d9b36acd62c2ef9c631170..1885bfe3c9592fd10310f8b98b1d78492804a797 100644 (file)
@@ -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)
 {
-       struct net_device_stats *stats = netdev_priv(dev);
+       struct net_device_stats *stats = dev->priv;
 
        skb_orphan(skb);