matroxfb: fix size of memcpy
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 25 Aug 2016 17:44:12 +0000 (23:14 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 27 Sep 2016 08:43:24 +0000 (11:43 +0300)
commit59921b239056fb6389a865083284e00ce0518db6
tree485d9c910c5a7217bf6ddd41d74063e5b7d4bc5e
parentd8ed9e87e6016433b8d178728a5391ea68101bca
matroxfb: fix size of memcpy

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>
drivers/video/fbdev/matrox/matroxfb_Ti3026.c