s390/qeth: avoid null pointer dereference on OSN
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Wed, 10 May 2017 17:07:53 +0000 (19:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 May 2017 16:37:48 +0000 (12:37 -0400)
commit25e2c341e7818a394da9abc403716278ee646014
treef8c945286e06fad2a6b46b105d8bfa24b327159e
parent2d2ebb3ed0c6acfb014f98e427298673a5d07b82
s390/qeth: avoid null pointer dereference on OSN

Access card->dev only after checking whether's its valid.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c