From: Michel Dänzer Date: Tue, 26 May 2015 08:53:38 +0000 (+0900) Subject: drm: Fix off-by-one in vblank hardware counter wraparound handling X-Git-Tag: omap-for-v4.2/fixes-rc1^2~17^2~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f;p=pandora-kernel.git 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 Reviewed-by: Christian König Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed