aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_l3_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r--drivers/s390/net/qeth_l3_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index cdd6ab9c894d..8f30085ef5b4 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -2082,9 +2082,11 @@ static int qeth_l3_stop_card(struct qeth_card *card, int recovery_mode)
2082 if (recovery_mode) 2082 if (recovery_mode)
2083 qeth_l3_stop(card->dev); 2083 qeth_l3_stop(card->dev);
2084 else { 2084 else {
2085 rtnl_lock(); 2085 if (card->dev) {
2086 dev_close(card->dev); 2086 rtnl_lock();
2087 rtnl_unlock(); 2087 dev_close(card->dev);
2088 rtnl_unlock();
2089 }
2088 } 2090 }
2089 if (!card->use_hard_stop) { 2091 if (!card->use_hard_stop) {
2090 rc = qeth_send_stoplan(card); 2092 rc = qeth_send_stoplan(card);