video: of: display_timing: double free on error
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 11 Jul 2014 09:21:36 +0000 (12:21 +0300)
committerTomi 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

index 987edf1100380b9d075067c659980931cfbda31b..5c098d5b40432ef2cec004ce420ef9660ef81599 100644 (file)
@@ -236,6 +236,7 @@ timingfail:
        if (native_mode)
                of_node_put(native_mode);
        display_timings_release(disp);
+       disp = NULL;
 entryfail:
        kfree(disp);
 dispfail: