提交 62795a0d 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 6c131850
...@@ -236,6 +236,7 @@ struct display_timings *of_get_display_timings(struct device_node *np) ...@@ -236,6 +236,7 @@ struct display_timings *of_get_display_timings(struct device_node *np)
if (native_mode) if (native_mode)
of_node_put(native_mode); of_node_put(native_mode);
display_timings_release(disp); display_timings_release(disp);
disp = NULL;
entryfail: entryfail:
kfree(disp); kfree(disp);
dispfail: dispfail:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册