aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorDuncan Sands <duncan.sands@free.fr>2006-09-27 17:38:08 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-18 15:49:54 -0400
commit0fbf116d120a2dc5d808204c7d86ad35f7d7846f (patch)
treea9e39a6232243d80f38032b28f5fecc12a13e128 /drivers/base
parentacbd39fbc5d8757aa920c6045399374df7a6dd68 (diff)
Driver core: plug device probe memory leak
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index b5f43c3e44fa..ef7db6939cbf 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -178,7 +178,7 @@ int driver_probe_device(struct device_driver * drv, struct device * dev)
178 probe_task = kthread_run(really_probe, data, 178 probe_task = kthread_run(really_probe, data,
179 "probe-%s", dev->bus_id); 179 "probe-%s", dev->bus_id);
180 if (IS_ERR(probe_task)) 180 if (IS_ERR(probe_task))
181 ret = PTR_ERR(probe_task); 181 ret = really_probe(data);
182 } else 182 } else
183 ret = really_probe(data); 183 ret = really_probe(data);
184 184