[E1000]: Fix schedule while atomic when called from mii-tool.
commitf0163ac45b40bd032b877c747796146d52d4e800
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 14 Nov 2007 05:00:09 +0000 (13 21:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Nov 2007 05:00:09 +0000 (13 21:00 -0800)
tree8fe8cb9be1632f5685cf40b838ca826d0425d8ea
parente2ac455a18806b31c2d0da0a51d8740af5010b7a
[E1000]: Fix schedule while atomic when called from mii-tool.

mii-tool can cause the driver to call msleep during nway reset,
bugzilla.kernel.org bug 8430.  Fix by simply calling reinit_locked
outside of the spinlock, which is safe from ethtool, so it should be
safe from here.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_main.c