]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix kernel panic on receive with WAN Hitachi SCA HD6457x
authorKrzysztof Halasa <khc@pm.waw.pl>
Fri, 18 Mar 2005 13:47:12 +0000 (05:47 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Mar 2005 13:47:12 +0000 (05:47 -0800)
Another patch for 2.6.11.x: already in main tree, fixes kernel panic on
receive with WAN cards based on Hitachi SCA/SCA-II: N2, C101, PCI200SYN.
The attached patch fixes NULL pointer dereference on RX.

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wan/hd6457x.c

index 05107bc0fd3805d5ae9300f6e56197219f5243a5..d3743321a9777ccf7e4d50aa09db9bc2d1d36f00 100644 (file)
@@ -315,7 +315,7 @@ static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, u1
 #endif
        stats->rx_packets++;
        stats->rx_bytes += skb->len;
-       skb->dev->last_rx = jiffies;
+       dev->last_rx = jiffies;
        skb->protocol = hdlc_type_trans(skb, dev);
        netif_rx(skb);
 }