Commit 62795a0d authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 6c131850
......@@ -236,6 +236,7 @@ struct display_timings *of_get_display_timings(struct device_node *np)
if (native_mode)
of_node_put(native_mode);
display_timings_release(disp);
disp = NULL;
entryfail:
kfree(disp);
dispfail:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment