diff options
author | Jani Nikula <[email protected]> | 2021-10-26 12:34:07 +0300 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2021-10-26 18:42:05 +0300 |
commit | bf0d608b55d9b7f426031dfd9f08d9df36c94728 (patch) | |
tree | 4dd54e1ea7400e81da56ec70f1be973dc4ec35eb /drivers/gpu/drm/i915/display/intel_dp_mst.c | |
parent | c4ae82a0e9222d275e3e4dd91c1cc3931ac0eca1 (diff) |
drm/i915/dp: fix integer overflow in 128b/132b data rate calculation
The intermediate value 1000000 * 10 * 9671 overflows 32 bits, so force
promotion to a bigger type.
From the logs:
[drm:intel_dp_compute_config [i915]] DP link rate required 3657063 available -580783288
v2: Use mul_u32_u32() (Ville)
Fixes: 48efd014f0ea ("drm/i915/dp: add max data rate calculation for UHBR rates")
Cc: Manasi Navare <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions