From 5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 26 May 2015 17:53:38 +0900 Subject: [PATCH] drm: Fix off-by-one in vblank hardware counter wraparound handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed