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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Jun 2017 10:07:42 +0000 (12:07 +0200)
commit96a81eb6ad5ab062dea32c6e764518effa5891e1
treef48511eef117bc5fbd93f250954fb32b6a7e064f
parentb68c2e387a232a9fc09ccbed792649481ca226f4
s390/qeth: avoid null pointer dereference on OSN

[ Upstream commit 25e2c341e7818a394da9abc403716278ee646014 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/net/qeth_l2_main.c