]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tgafb: fix data copying
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jan 2014 19:43:10 +0000 (14:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 12:11:31 +0000 (14:11 +0200)
commitfd9a5e6cd4d5f923eff026dd288764cf65c001a7
tree582fbb165db4a107cde9cb0b6dd249259781891d
parent0e0dc73524d0e17a6dce2d3cd7ec3d6a785eb6df
tgafb: fix data copying

commit 6b0df6827bb6fcacb158dff29ad0a62d6418b534 upstream.

The functions for data copying copyarea_foreward_8bpp and
copyarea_backward_8bpp are buggy, they produce screen corruption.

This patch fixes the functions and moves the logic to one function
"copyarea_8bpp". For simplicity, the function only handles copying that
is aligned on 8 pixes. If we copy an unaligned area, generic function
cfb_copyarea is used.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/tgafb.c