]> git.baikalelectronics.ru Git - kernel.git/commit
video: kyro: fix incorrect sizes when copying to userspace
authorSasha Levin <sasha.levin@oracle.com>
Tue, 19 Nov 2013 19:25:36 +0000 (14:25 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 26 Nov 2013 14:40:14 +0000 (16:40 +0200)
commit1784894362e573ff0c8d235b57d5e8ae019a4236
tree5419c4937fa6350adce1b76e96dd5dd302a19564
parent9318b617957b5cc59d8758d36d9ffee1243e52d4
video: kyro: fix incorrect sizes when copying to userspace

kyro would copy u32s and specify sizeof(unsigned long) as the size to copy.

This would copy more data than intended and cause memory corruption and might
leak kernel memory.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/kyro/fbdev.c