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

Commit 0fbf116d authored by Duncan Sands's avatar Duncan Sands Committed by Greg Kroah-Hartman
Browse files

Driver core: plug device probe memory leak



Make sure data is freed if the kthread fails to start.

Signed-off-by: default avatarDuncan Sands <baldrick@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent acbd39fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ int driver_probe_device(struct device_driver * drv, struct device * dev)
		probe_task = kthread_run(really_probe, data,
					 "probe-%s", dev->bus_id);
		if (IS_ERR(probe_task))
			ret = PTR_ERR(probe_task);
			ret = really_probe(data);
	} else
		ret = really_probe(data);