From: Frank Blaschka Date: Fri, 6 Jun 2008 10:37:44 +0000 (+0200) Subject: qeth: layer 3 Oops in ip event handler X-Git-Tag: v2.6.26-rc6~13^2^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5bd7be56787f8c5042081157fff983bcf0c8a42;p=linux-2.6-omap-h63xx.git qeth: layer 3 Oops in ip event handler The ip event handler may present us non qeth network interfaces. Add qeth card pointer check. Signed-off-by: Frank Blaschka Signed-off-by: Jeff Garzik --- diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 94a8ead64ed..b041ea8c957 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -2070,7 +2070,7 @@ static struct qeth_card *qeth_l3_get_card_from_dev(struct net_device *dev) card = netdev_priv(dev); else if (rc == QETH_VLAN_CARD) card = netdev_priv(vlan_dev_info(dev)->real_dev); - if (card->options.layer2) + if (card && card->options.layer2) card = NULL; QETH_DBF_TEXT_(TRACE, 4, "%d", rc); return card ;