diff options
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index a7590551e574..d5e40c3e4bc3 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -456,8 +456,11 @@ static void qeth_l3_set_ip_addr_list(struct qeth_card *card) | |||
456 | QETH_CARD_TEXT(card, 2, "sdiplist"); | 456 | QETH_CARD_TEXT(card, 2, "sdiplist"); |
457 | QETH_CARD_HEX(card, 2, &card, sizeof(void *)); | 457 | QETH_CARD_HEX(card, 2, &card, sizeof(void *)); |
458 | 458 | ||
459 | if (card->options.sniffer) | 459 | if ((card->state != CARD_STATE_UP && |
460 | card->state != CARD_STATE_SOFTSETUP) || card->options.sniffer) { | ||
460 | return; | 461 | return; |
462 | } | ||
463 | |||
461 | spin_lock_irqsave(&card->ip_lock, flags); | 464 | spin_lock_irqsave(&card->ip_lock, flags); |
462 | tbd_list = card->ip_tbd_list; | 465 | tbd_list = card->ip_tbd_list; |
463 | card->ip_tbd_list = kmalloc(sizeof(struct list_head), GFP_ATOMIC); | 466 | card->ip_tbd_list = kmalloc(sizeof(struct list_head), GFP_ATOMIC); |