projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c13185
)
video: of: display_timing: double free on error
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 11 Jul 2014 09:21:36 +0000
(12:21 +0300)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Tue, 26 Aug 2014 11:23:47 +0000
(14:23 +0300)
The display_timings_release() function frees "disp" and we free it
again on the next line.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
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 987edf1100380b9d075067c659980931cfbda31b..5c098d5b40432ef2cec004ce420ef9660ef81599 100644
(file)
--- a/
drivers/video/of_display_timing.c
+++ b/
drivers/video/of_display_timing.c
@@
-236,6
+236,7
@@
timingfail:
if (native_mode)
of_node_put(native_mode);
display_timings_release(disp);
+ disp = NULL;
entryfail:
kfree(disp);
dispfail: