Bluetooth: Fix race condition with L2CAP information request
[safe/jmp/linux-2.6] / include / net / x25device.h
index d45ae88..1415bcf 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->input_dev = skb->dev = dev;
+       skb->dev = dev;
+       skb_reset_mac_header(skb);
        skb->pkt_type = PACKET_HOST;
        
        return htons(ETH_P_X25);