qeth: delete napi struct when removing a qeth device
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Mon, 4 Jul 2016 12:07:16 +0000 (14:07 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:37:18 +0000 (22:37 +0100)
commitb8c53651ee6cf3beb113e84c7f1d05d04a5815fb
tree462a882f07593a5bde9c670ffdf5b6126463194d
parent6530d0788e7048a1f9879d476122c916c6f72a96
qeth: delete napi struct when removing a qeth device

commit 7831b4ff0d926e0deeaabef9db8800ed069a2757 upstream.

A qeth_card contains a napi_struct linked to the net_device during
device probing. This struct must be deleted when removing the qeth
device, otherwise Panic on oops can occur when qeth devices are
repeatedly removed and added.

Fixes: a1c3ed4c9ca ("qeth: NAPI support for l2 and l3 discipline")
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Tested-by: Alexander Klein <ALKL@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c