]> git.karo-electronics.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:11:52 +0000 (12:11 -0700)
commitb52f06719c794cc8df5ea871a4fd498ff252210a
treeb11aa21e96450bafdd90bfa0fcddb28de5911e87
parent7436bcf6158d70346928b9b26568f5bb3213a36f
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/netconsole.c