projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbd39f
)
Driver core: plug device probe memory leak
author
Duncan Sands
<duncan.sands@free.fr>
Wed, 27 Sep 2006 21:38:08 +0000
(23:38 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 18 Oct 2006 19:49:54 +0000
(12:49 -0700)
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>
drivers/base/dd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/dd.c
b/drivers/base/dd.c
index b5f43c3e44fa2a5c9d5bf23898ea57472e7b38ae..ef7db6939cbf05af28bac4ae4bedc298d103214f 100644
(file)
--- 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)
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);