From: Dan Carpenter Date: Fri, 11 Jul 2014 09:21:36 +0000 (+0300) Subject: video: of: display_timing: double free on error X-Git-Tag: firefly_0821_release~176^2~3317^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=62795a0d81970bfdd5866ffd87160c670a6b344c;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Tomi Valkeinen --- 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: