mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 12:26:54 +07:00
video: of: fix memory leak
If of_parse_display_timing() fails we are printing an error message and jumping to the error path but we missed freeing "dt". Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
4d370b74e7
commit
d663baba8b
@ -210,6 +210,7 @@ struct display_timings *of_get_display_timings(struct device_node *np)
|
||||
*/
|
||||
pr_err("%s: error in timing %d\n",
|
||||
of_node_full_name(np), disp->num_timings + 1);
|
||||
kfree(dt);
|
||||
goto timingfail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user