summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Blaschka <frank.blaschka@de.ibm.com>2008-06-06 12:37:44 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-06-10 18:20:34 -0400
commite5bd7be56787f8c5042081157fff983bcf0c8a42 (patch)
treec720ca2ab45019c9696b2e53639b1c783462046f
parent363f15149cfba67d29f1e6a6103dda079f27f3fa (diff)
downloadkernel-crypto-e5bd7be56787f8c5042081157fff983bcf0c8a42.tar.gz
kernel-crypto-e5bd7be56787f8c5042081157fff983bcf0c8a42.tar.xz
kernel-crypto-e5bd7be56787f8c5042081157fff983bcf0c8a42.zip
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 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 ;