]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 06:32:08 +0000 (23:32 -0700)
commit3a3bde083321fa3405166dec62d0e849717e0699
treecf1e9a57c3722c214df60e89362d92f5e94a0e9c
parent2e960d837ea03d2b14fa5c4a68e0e2f274ea76ff
qeth: delete napi struct when removing a qeth device

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: faf30f2d7e8 ("qeth: NAPI support for l2 and l3 discipline")
Cc: stable@vger.kernel.org # v2.6.37+
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>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c