diff options
author | Kuogee Hsieh <[email protected]> | 2024-01-10 12:18:51 -0800 |
---|---|---|
committer | Abhinav Kumar <[email protected]> | 2024-01-24 14:06:24 -0800 |
commit | 77e8aad5519e04f6c1e132aaec1c5f8faf41844f (patch) | |
tree | ad8e14a4e248c9bb5e0c573ac7b4b164c9bbf438 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 1793ce9f205efe07ca2992ef129b86dab2c329f5 (diff) |
drm/msms/dp: fixed link clock divider bits be over written in BPC unknown case
Since the value of DP_TEST_BIT_DEPTH_8 is already left shifted, in the
BPC unknown case, the additional shift causes spill over to the other
bits of the [DP_CONFIGURATION_CTRL] register.
Fix this by changing the return value of dp_link_get_test_bits_depth()
in the BPC unknown case to (DP_TEST_BIT_DEPTH_8 >> DP_TEST_BIT_DEPTH_SHIFT).
Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support")
Signed-off-by: Kuogee Hsieh <[email protected]>
Reviewed-by: Abhinav Kumar <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/573989/
Link: https://lore.kernel.org/r/[email protected]
[[email protected]: fix minor checkpatch warning to align with opening braces]
Signed-off-by: Abhinav Kumar <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions