commit | 68c2889834602f6efed195f44439ef5d526683a8 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Sat May 31 16:52:52 2008 +0100 |
committer | Jeff Garzik <jgarzik@redhat.com> | Tue Jun 10 18:40:44 2008 -0400 |
tree | 7ebd78d9c03ddc08c980548a1ab957d480d834c7 | |
parent | 69de8d23d10694bdd63fe715b98e1a61c56ed288 [diff] [blame] |
sky2: Hold RTNL while calling dev_close() dev_close() must be called holding the RTNL. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 3bb6053..62436b3 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c
@@ -4404,7 +4404,9 @@ if (err) { printk(KERN_ERR PFX "%s: could not up: %d\n", dev->name, err); + rtnl_lock(); dev_close(dev); + rtnl_unlock(); goto out; } }