vserver 1.9.3
[linux-2.6.git] / net / llc / llc_input.c
index ecfa9b5..4da6976 100644 (file)
@@ -111,7 +111,7 @@ static inline int llc_fixup_skb(struct sk_buff *skb)
        skb->h.raw += llc_len;
        skb_pull(skb, llc_len);
        if (skb->protocol == htons(ETH_P_802_2)) {
-               u16 pdulen = ((struct ethhdr *)skb->mac.raw)->h_proto,
+               u16 pdulen = eth_hdr(skb)->h_proto,
                    data_size = ntohs(pdulen) - llc_len;
 
                skb_trim(skb, data_size);