Skip to content

Commit

Permalink
Driver core: plug device probe memory leak
Browse files Browse the repository at this point in the history
Make sure data is freed if the kthread fails to start.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Duncan Sands authored and Greg Kroah-Hartman committed Oct 18, 2006
1 parent acbd39f commit 0fbf116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0fbf116

Please sign in to comment.