mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
drm/amd/display: Fix use of uninitialized union
[Why] An uninitialized variable would randomly initialize to a large value. This caused enough delay to fail DP Compliance Test 400.2.1. [How] Initialize the variable. Signed-off-by: John Barberiz <[email protected]> Reviewed-by: Wenjing Liu <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
This commit is contained in:
committed by
Alex Deucher
parent
bf75572a25
commit
3cec41769d
@@ -47,7 +47,7 @@ static void wait_for_training_aux_rd_interval(
|
||||
struct dc_link *link,
|
||||
uint32_t default_wait_in_micro_secs)
|
||||
{
|
||||
union training_aux_rd_interval training_rd_interval;
|
||||
union training_aux_rd_interval training_rd_interval = {0};
|
||||
|
||||
/* overwrite the delay if rev > 1.1*/
|
||||
if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) {
|
||||
|
||||
Reference in New Issue
Block a user