aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Blaschka <frank.blaschka@de.ibm.com>2008-06-06 06:37:44 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-06-10 18:20:34 -0400
commite5bd7be56787f8c5042081157fff983bcf0c8a42 (patch)
treec720ca2ab45019c9696b2e53639b1c783462046f
parent363f15149cfba67d29f1e6a6103dda079f27f3fa (diff)
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 <frank.blaschka@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/s390/net/qeth_l3_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index 94a8ead64ed4..b041ea8c9577 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)
2070 card = netdev_priv(dev); 2070 card = netdev_priv(dev);
2071 else if (rc == QETH_VLAN_CARD) 2071 else if (rc == QETH_VLAN_CARD)
2072 card = netdev_priv(vlan_dev_info(dev)->real_dev); 2072 card = netdev_priv(vlan_dev_info(dev)->real_dev);
2073 if (card->options.layer2) 2073 if (card && card->options.layer2)
2074 card = NULL; 2074 card = NULL;
2075 QETH_DBF_TEXT_(TRACE, 4, "%d", rc); 2075 QETH_DBF_TEXT_(TRACE, 4, "%d", rc);
2076 return card ; 2076 return card ;