]> err.no Git - linux-2.6/blobdiff - drivers/net/wan/syncppp.c
atl1: disable broken 64-bit DMA
[linux-2.6] / drivers / net / wan / syncppp.c
index d1173089f334a29d51f4375578bcd6bbca74493d..67fc67cfd452562768adb8b09bfb369ca0f1e360 100644 (file)
@@ -227,7 +227,7 @@ static void sppp_input (struct net_device *dev, struct sk_buff *skb)
        unsigned long flags;
 
        skb->dev=dev;
-       skb->mac.raw=skb->data;
+       skb_reset_mac_header(skb);
 
        if (dev->flags & IFF_RUNNING)
        {
@@ -469,7 +469,7 @@ static void sppp_lcp_input (struct sppp *sp, struct sk_buff *skb)
        struct net_device *dev = sp->pp_if;
        int len = skb->len;
        u8 *p, opt[6];
-       u32 rmagic;
+       u32 rmagic = 0;
 
        if (!pskb_may_pull(skb, sizeof(struct lcp_header))) {
                if (sp->pp_flags & PP_DEBUG)