diff options
| author | Imre Deak <[email protected]> | 2021-10-18 12:41:51 +0300 |
|---|---|---|
| committer | Imre Deak <[email protected]> | 2021-10-20 12:20:12 +0300 |
| commit | 9ad87de4735620ffc555592e8c5f580478fa3ed0 (patch) | |
| tree | 03acab462550f981db60518a9fe935ce9000f245 /scripts/objdiff | |
| parent | 3f61ef9777c0ab0f03f4af0ed6fd3e5250537a8d (diff) | |
drm/i915/dp: Ensure max link params are always valid
Atm until the DPCD for a connector is read the max link rate and lane
count params are invalid. If the connector is modeset, in
intel_dp_compute_config(), intel_dp_common_len_rate_limit(max_link_rate)
will return 0, leading to a intel_dp->common_rates[-1] access.
Fix the above by making sure the max link params are always valid.
The above access leads to an undefined behaviour by definition, though
not causing a user visible problem to my best knowledge, see the previous
patch why. Nevertheless it is an undefined behaviour and it triggers a
BUG() in CONFIG_UBSAN builds, hence CC:stable.
Cc: Ville Syrjälä <[email protected]>
Cc: <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Acked-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions