]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
matroxfb: fix size of memcpy
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 25 Aug 2016 17:44:12 +0000 (23:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 09:07:12 +0000 (10:07 +0100)
commite643399ec4d9ce7dd20771bfdfcc41f36cd63086
tree04a0f0cea636895fc519971b477193c8cf10e5ec
parent1bb31e3fbbdb8fd4c64cfbd7715229b32b795662
matroxfb: fix size of memcpy

commit 59921b239056fb6389a865083284e00ce0518db6 upstream.

hw->DACreg has a size of 80 bytes and MGADACbpp32 has 21. So when
memcpy copies MGADACbpp32 to hw->DACreg it copies 80 bytes but
only 21 bytes are valid.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fbdev/matrox/matroxfb_Ti3026.c