diff options
author | Anson Jacob <[email protected]> | 2021-03-02 16:16:36 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-03-23 23:32:12 -0400 |
commit | 6a30a92997eee49554f72b462dce90abe54a496f (patch) | |
tree | 8261c1e68a8f0ec80c2a4d9b7f937c28f6de4ed0 /scripts/gdb/linux/timerlist.py | |
parent | b8720ed0b87d32c269b41146718253fed7cf3c59 (diff) |
drm/amd/display: Fix UBSAN warning for not a valid value for type '_Bool'
[Why]
dc_cursor_position do not initialise position.translate_by_source when
crtc or plane->state->fb is NULL. UBSAN caught this error in
dce110_set_cursor_position, as the value was garbage.
[How]
Initialise dc_cursor_position structure elements to 0 in handle_cursor_update
before calling get_cursor_position.
Tested-by: Daniel Wheeler <[email protected]>
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1471
Reported-by: Lyude Paul <[email protected]>
Signed-off-by: Anson Jacob <[email protected]>
Reviewed-by: Aurabindo Jayamohanan Pillai <[email protected]>
Acked-by: Solomon Chiu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions