]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:04 +0000 (17:22 -0500)
commitdcaf1046bf986c20115d925c0b6fedd1057bb076
treeab3a737ecbcace9e9abebe736b8b11b676bfa19f
parent1d18a332089cdb4714478c216d6c5df3f583c334
qeth: delete napi struct when removing a qeth device

Orabug: 25308097

[ Upstream commit 7831b4ff0d926e0deeaabef9db8800ed069a2757 ]

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")
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
(cherry picked from commit df3f23d87fdbbb76f41949be380d1bdb094f033a)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c