]> err.no Git - linux-2.6/commitdiff
[NET]: Correct two mistaken skb_reset_mac_header() conversions.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 20 Dec 2007 08:25:54 +0000 (00:25 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 20 Dec 2007 08:25:54 +0000 (00:25 -0800)
This operation helper abstracts:

skb->mac_header = skb->data;

but it was done in two more places which were actually:

skb->mac_header = skb->network_header;

and those are corrected here.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ax25/ax25_in.c
net/netrom/nr_dev.c

index 3b7d1720c2eee2c3d652526f74f92094bb4634b4..d1be080dcb25c242d9af620470f20bd3cf8de307 100644 (file)
@@ -124,7 +124,7 @@ int ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb)
                }
 
                skb_pull(skb, 1);       /* Remove PID */
-               skb_reset_mac_header(skb);
+               skb->mac_header = skb->network_header;
                skb_reset_network_header(skb);
                skb->dev      = ax25->ax25_dev->dev;
                skb->pkt_type = PACKET_HOST;
index 8c68da5ef0a17840a017dcf92993e8842d744952..6caf459665f2c78e5d1f1b35344c227bdd5da813 100644 (file)
@@ -56,7 +56,7 @@ int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
 
        /* Spoof incoming device */
        skb->dev      = dev;
-       skb_reset_mac_header(skb);
+       skb->mac_header = skb->network_header;
        skb_reset_network_header(skb);
        skb->pkt_type = PACKET_HOST;