]> 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 20:55:17 +0000 (21:55 +0100)
commited8c3cb1e66ac583ae461fef25b0cd01df1e50e7
tree26872b87d2ba3cb7e5d18a6e06714710d4dbb991
parentdc4bc70259daba144f799e40a99413a86c601006
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