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

Commit 1f5681aa authored by Stefan Richter's avatar Stefan Richter Committed by Greg Kroah-Hartman
Browse files

driver core: properly get driver in device_release_driver

parent f8916c11
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -296,9 +296,8 @@ static void __device_release_driver(struct device * dev)
{
	struct device_driver * drv;

	drv = dev->driver;
	drv = get_driver(dev->driver);
	if (drv) {
		get_driver(drv);
		driver_sysfs_remove(dev);
		sysfs_remove_link(&dev->kobj, "driver");
		klist_remove(&dev->knode_driver);