diff options
author | Michel Dänzer | 2015-05-26 10:53:38 +0200 |
---|---|---|
committer | Daniel Vetter | 2015-05-27 13:00:08 +0200 |
commit | 5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f (patch) | |
tree | 4a9ad864ed2ff736c7138fa997875b7944601d6e /include | |
parent | drm/atomic: fix out of bounds read in for_each_*_in_state helpers (diff) | |
download | kernel-qcow2-linux-5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f.tar.gz kernel-qcow2-linux-5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f.tar.xz kernel-qcow2-linux-5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f.zip |
drm: Fix off-by-one in vblank hardware counter wraparound handling
dev->max_vblank_count contains the largest value that can be represented
by the hardware counter. When the hardware counter wraps around, we have
to add that value + 1 to get the same value as if the hardware counter
didn't wrap around.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions