diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-05-28 11:27:43 +0300 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2019-05-31 15:41:29 +0200 |
commit | 46648a3cec2d5e1bf6af1919f5f79505fcbf3af8 (patch) | |
tree | 7b9f8bfbc2908c66fd4b7a274b5c22ff57484a2b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0cdb42f313e0c6fa928d2ba55f6d200f615005bc (diff) |
drm/bridge: tc358767: copy the mode data, instead of storing the pointer
In tc_bridge_mode_set callback, we store the pointer to the given
drm_display_mode, and use the mode later. Storing a pointer in such a
way looks very suspicious to me, and I have observed odd issues where
the timings were apparently (at least mostly) zero.
Do a copy of the drm_display_mode instead to ensure we don't refer to
freed/modified data.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-21-tomi.valkeinen@ti.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions