projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d370b7
)
video: of: fix memory leak
author
Sudip Mukherjee
<sudipm.mukherjee@gmail.com>
Wed, 30 Sep 2015 09:54:08 +0000
(15:24 +0530)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Wed, 7 Oct 2015 11:13:59 +0000
(14:13 +0300)
If of_parse_display_timing() fails we are printing an error message and
jumping to the error path but we missed freeing "dt".
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/of_display_timing.c
patch
|
blob
|
history
diff --git
a/drivers/video/of_display_timing.c
b/drivers/video/of_display_timing.c
index 32d8275e4c88485b2b522f56733e90ba614fc7b2..8a1076beecd33aa29891849f5feaa36b42027036 100644
(file)
--- a/
drivers/video/of_display_timing.c
+++ b/
drivers/video/of_display_timing.c
@@
-210,6
+210,7
@@
struct display_timings *of_get_display_timings(struct device_node *np)
*/
pr_err("%s: error in timing %d\n",
of_node_full_name(np), disp->num_timings + 1);
+ kfree(dt);
goto timingfail;
}