]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netconsole: don't call __netpoll_cleanup() while atomic
authorVeaceslav Falico <vfalico@redhat.com>
Mon, 11 Mar 2013 00:21:48 +0000 (00:21 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:05 +0000 (02:41 +0000)
commitec207c103236a1fa33b838e7710c07253b839962
tree244ee320396c09ce84d4ae745b310b942f98d9bb
parent0bb198b532f104b4d59fcd26c4c1e56a1faa8b9a
netconsole: don't call __netpoll_cleanup() while  atomic

[ Upstream commit 3f315bef23075ea8a98a6fe4221a83b83456d970 ]

__netpoll_cleanup() is called in netconsole_netdev_event() while holding a
spinlock. Release/acquire the spinlock before/after it and restart the
loop. Also, disable the netconsole completely, because we won't have chance
after the restart of the loop, and might end up in a situation where
nt->enabled == 1 and nt->np.dev == NULL.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/netconsole.c