]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/x25device.h
select: deal with math overflow from borderline valid userland data
[linux-2.6-omap-h63xx.git] / include / net / x25device.h
index 1d10c879f7e241b8543e0f86cb51d45e56381982..1415bcf93980f9c06aca48ee41de41065d72cedb 100644 (file)
@@ -7,8 +7,8 @@
 
 static inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev)
 {
-       skb->mac.raw = skb->data;
        skb->dev = dev;
+       skb_reset_mac_header(skb);
        skb->pkt_type = PACKET_HOST;
        
        return htons(ETH_P_X25);