diff options
| author | Aric Cyr <[email protected]> | 2020-05-12 15:48:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-05-27 22:13:14 +0000 |
| commit | 4e5183200d9b66695c754ef214933402056e7b95 (patch) | |
| tree | 499c86fa12aa05bb51f93bca22f9a864a97990ee /drivers/pci/controller/pci-host-generic.c | |
| parent | drm/amd/display: drop cursor position check in atomic test (diff) | |
| download | kernel-4e5183200d9b66695c754ef214933402056e7b95.tar.gz kernel-4e5183200d9b66695c754ef214933402056e7b95.zip | |
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 <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Acked-by: Qingqing Zhuo <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
