diff options
author | Aric Cyr <aric.cyr@amd.com> | 2020-05-12 11:48:48 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-05-27 18:13:14 -0400 |
commit | 4e5183200d9b66695c754ef214933402056e7b95 (patch) | |
tree | 499c86fa12aa05bb51f93bca22f9a864a97990ee /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | f7d5991b92ff824798693ddf231cf814c9d5a88b (diff) |
drm/amd/display: Fix potential integer wraparound resulting in a hang
[Why]
If VUPDATE_END is before VUPDATE_START the delay calculated can become
very large, causing a soft hang.
[How]
Take the absolute value of the difference between START and END.
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions