From: Jesse Brandeburg Date: Wed, 22 Sep 2010 18:22:42 +0000 (+0000) Subject: e1000: fix occasional panic on unload X-Git-Tag: v2.6.37-rc1~147^2~364 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=338c15e470d818f215d651505dc169d4e92f36a4;p=pandora-kernel.git e1000: fix occasional panic on unload Net drivers in general have an issue where timers fired by mod_timer or work threads with schedule_work are running outside of the rtnl_lock. With no other lock protection these routines are vulnerable to races with driver unload or reset paths. The longer term solution to this might be a redesign with safer locks being taken in the driver to guarantee no reentrance, but for now a safe and effective fix is to take the rtnl_lock in these routines. Signed-off-by: Jesse Brandeburg Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed