]> err.no Git - linux-2.6/commitdiff
qeth: layer 3 Oops in ip event handler
authorFrank Blaschka <frank.blaschka@de.ibm.com>
Fri, 6 Jun 2008 10:37:44 +0000 (12:37 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 10 Jun 2008 22:20:34 +0000 (18:20 -0400)
The ip event handler may present us non qeth network interfaces.
Add qeth card pointer check.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/s390/net/qeth_l3_main.c

index 94a8ead64ed4d3ea428d6da0eaaa810e82146ded..b041ea8c9577a404f2e042d297a9bdcf609ff6cd 100644 (file)
@@ -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 ;