Commit 68c28898 authored by Ben Hutchings's avatar Ben Hutchings Committed by Jeff Garzik

sky2: Hold RTNL while calling dev_close()

dev_close() must be called holding the RTNL.
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 69de8d23
...@@ -4404,7 +4404,9 @@ static int sky2_resume(struct pci_dev *pdev) ...@@ -4404,7 +4404,9 @@ static int sky2_resume(struct pci_dev *pdev)
if (err) { if (err) {
printk(KERN_ERR PFX "%s: could not up: %d\n", printk(KERN_ERR PFX "%s: could not up: %d\n",
dev->name, err); dev->name, err);
rtnl_lock();
dev_close(dev); dev_close(dev);
rtnl_unlock();
goto out; goto out;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment