Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4404,7 +4404,9 @@ static int sky2_resume(struct pci_dev *pdev)
			if (err) {
				printk(KERN_ERR PFX "%s: could not up: %d\n",
				       dev->name, err);
				rtnl_lock();
				dev_close(dev);
				rtnl_unlock();
				goto out;
			}
		}