diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-07-11 11:21:36 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-08-26 13:23:47 +0200 |
commit | 62795a0d81970bfdd5866ffd87160c670a6b344c (patch) | |
tree | 1852d0768e45e72eafee5a5ba3c930581a7881fc /drivers/video/of_display_timing.c | |
parent | drivers: video: fbdev: atmel_lcdfb.c: fix error return code (diff) | |
download | linux-62795a0d81970bfdd5866ffd87160c670a6b344c.tar.xz linux-62795a0d81970bfdd5866ffd87160c670a6b344c.zip |
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/of_display_timing.c')
-rw-r--r-- | drivers/video/of_display_timing.c | 1 |
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: |