]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: fix line iterator in damage handling
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 23 Sep 2016 10:36:02 +0000 (12:36 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Sep 2016 03:29:18 +0000 (13:29 +1000)
commitb8f4746d9b6dcdd87b5d1e11bcad69bea3b866e9
tree862590353f693cb4948bd3db8bf5569f4d4a3316
parent0ee08de6102228bbdf09a839dff6cc811e841745
drm/udl: fix line iterator in damage handling

The udl damage handler is supposed to render 'height' lines, but its
iterator has an obvious typo that makes it miss most lines if the
rectangle does not cover 0/0.

Fix the damage handler to correctly render all lines.

This is a fallout from:

    commit 54ae0aea65bb10345dbf52af9db99fe72e099cc5
    Author: Noralf Trønnes <noralf@tronnes.org>
    Date:   Thu Apr 28 17:18:37 2016 +0200

        drm/udl: Use drm_fb_helper deferred_io support

Tested-by: poma <poma@gmail.com>
Cc: stable@vger.kernel.org # 4.7+
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_fb.c