1
0
Fork 0

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>
hifive-unleashed-5.1
Dan Carpenter 2014-07-11 12:21:36 +03:00 committed by Tomi Valkeinen
parent 6c131850ec
commit 62795a0d81
1 changed files with 1 additions and 0 deletions

View File

@ -236,6 +236,7 @@ timingfail:
if (native_mode)
of_node_put(native_mode);
display_timings_release(disp);
disp = NULL;
entryfail:
kfree(disp);
dispfail: