summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-07-11 13:21:36 +0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-08-26 15:23:47 +0400
commit62795a0d81970bfdd5866ffd87160c670a6b344c (patch)
tree1852d0768e45e72eafee5a5ba3c930581a7881fc /drivers/video
parent6c131850eca653344c41d68ce87f3ab5a89af89e (diff)
downloadlinux-62795a0d81970bfdd5866ffd87160c670a6b344c.tar.xz
video: of: display_timing: double free on error
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/of_display_timing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c
index 987edf110038..5c098d5b4043 100644
--- 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: