linux/drivers/s390/net
Julian Wiedmann 30356d0815 s390/qeth: unregister netdevice only when registered
qeth only registers its netdevice when the qeth device is first set
online. Thus a device that has never been set online will trigger
a WARN ("network todo 'hsi%d' but state 0") in unregister_netdev() when
removed.

Fix this by protecting the unregister step, just like we already protect
against repeated registering of the netdevice.

Fixes: d3d1b205e8 ("s390/qeth: allocate netdevice early")
Reported-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-03 10:44:05 -07:00
..
ctcm_dbug.c
ctcm_dbug.h
ctcm_fsms.c
ctcm_fsms.h
ctcm_main.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ctcm_main.h
ctcm_mpc.c
ctcm_mpc.h
ctcm_sysfs.c
fsm.c
fsm.h
ism_drv.c PCI: Remove pci_set_dma_max_seg_size() 2018-10-10 15:47:00 -05:00
ism.h s390/ism: add device driver for internal shared memory 2018-06-30 20:42:26 +09:00
Kconfig s390/ism: add device driver for internal shared memory 2018-06-30 20:42:26 +09:00
lcs.c s390/net: set HW port number in netdevice 2018-04-27 13:38:47 -04:00
lcs.h
Makefile s390/ism: add device driver for internal shared memory 2018-06-30 20:42:26 +09:00
netiucv.c
qeth_core_main.c s390/qeth: sanitize strings in debug messages 2018-11-03 10:44:05 -07:00
qeth_core_mpc.c s390: qeth: Fix potential array overrun in cmd/rc lookup 2018-09-28 10:27:26 -07:00
qeth_core_mpc.h s390/qeth: enhance TSO control sequence 2018-10-12 11:27:00 -07:00
qeth_core_sys.c s390/qeth: remove duplicated carrier state tracking 2018-09-26 09:56:08 -07:00
qeth_core.h s390/qeth: unregister netdevice only when registered 2018-11-03 10:44:05 -07:00
qeth_l2_main.c s390/qeth: unregister netdevice only when registered 2018-11-03 10:44:05 -07:00
qeth_l2_sys.c
qeth_l2.h s390/qeth: clean up exported symbols 2018-07-12 16:42:39 -07:00
qeth_l3_main.c s390/qeth: unregister netdevice only when registered 2018-11-03 10:44:05 -07:00
qeth_l3_sys.c s390/qeth: allocate netdevice early 2018-07-21 10:12:29 -07:00
qeth_l3.h s390/qeth: shrink qeth_ipaddr struct 2018-03-09 13:10:05 -05:00
smsgiucv_app.c
smsgiucv.c s390/smsgiucv: disable SMSG on module unload 2018-04-16 09:10:17 +02:00
smsgiucv.h