From: Veaceslav Falico Date: Mon, 11 Mar 2013 00:21:48 +0000 (+0000) Subject: netconsole: don't call __netpoll_cleanup() while atomic X-Git-Tag: v3.2.42~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec207c103236a1fa33b838e7710c07253b839962;p=pandora-kernel.git 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 Acked-by: Neil Horman Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed