[PATCH] drm/udl: fix udl_handle_damage

Daniel Vetter daniel.vetter at ffwll.ch
Fri Sep 23 10:59:12 UTC 2016


Noralf accidentally made a small mistake for real subrectangles in his
patch to convert udl to the shared fb dirty handling code.

Fixes: e375882406d0 ("drm/udl: Use drm_fb_helper deferred_io support")
Cc: <stable at vger.kernel.org> # v4.7+
Cc: Noralf Trønnes <noralf at tronnes.org>
Cc: Gerd Hoffmann <kraxel at redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
 drivers/gpu/drm/udl/udl_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c
index 9688bfa92ccd..611b6b9bb3cb 100644
--- a/drivers/gpu/drm/udl/udl_fb.c
+++ b/drivers/gpu/drm/udl/udl_fb.c
@@ -122,7 +122,7 @@ int udl_handle_damage(struct udl_framebuffer *fb, int x, int y,
 		return 0;
 	cmd = urb->transfer_buffer;
 
-	for (i = y; i < height ; i++) {
+	for (i = y; i < y + height ; i++) {
 		const int line_offset = fb->base.pitches[0] * i;
 		const int byte_offset = line_offset + (x * bpp);
 		const int dev_byte_offset = (fb->base.width * bpp * i) + (x * bpp);
-- 
2.7.4



More information about the dri-devel mailing list