linux-uconsole/drivers/s390
Julian Wiedmann 99b9de47a8 s390/qeth: unregister netdevice only when registered
[ Upstream commit 30356d0815 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-27 16:13:03 +01:00
..
block libnvdimm-for-4.19_misc 2018-08-25 18:13:10 -07:00
char s390/hibernate: fix error handling when suspend cpu != resume cpu 2018-09-20 13:20:23 +02:00
cio s390/cio: Fix how vfio-ccw checks pinned pages 2018-10-02 09:45:05 +02:00
crypto s390/zcrypt: remove VLA usage from the AP bus 2018-09-12 11:33:37 +02:00
net s390/qeth: unregister netdevice only when registered 2018-11-27 16:13:03 +01:00
scsi s390/dasd,zfcp: fix gcc 8 stringop-truncation warnings 2018-07-02 11:24:52 +02:00
virtio virtio/s390: implement PM operations for virtio_ccw 2018-02-14 14:34:09 +02:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00