diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-30 15:24:08 +0530 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-10-07 14:13:59 +0300 |
commit | d663baba8b16f3097ac3fb5baf97c54970d2f1ff (patch) | |
tree | 877e4952a5499497c6d09dd11ff96def30ba35b5 /drivers/video/of_display_timing.c | |
parent | 4d370b74e7ce175f26654fe2db49db342566cdc8 (diff) | |
download | talos-op-linux-d663baba8b16f3097ac3fb5baf97c54970d2f1ff.tar.gz talos-op-linux-d663baba8b16f3097ac3fb5baf97c54970d2f1ff.zip |
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>
Diffstat (limited to 'drivers/video/of_display_timing.c')
-rw-r--r-- | drivers/video/of_display_timing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index 32d8275e4c88..8a1076beecd3 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c @@ -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; } |