Commit 07799983 authored by Krzysztof Halasa's avatar Krzysztof Halasa Committed by Greg Kroah-Hartman

[PATCH] Fix kernel panic on receive with WAN Hitachi SCA HD6457x

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: default avatarKrzysztof Halasa <khc@pm.waw.pl>
Acked-by: default avatarJeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8453cce7
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment