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: NSasha Levin <sasha.levin@oracle.com> Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
Showing
想要评论请 注册 或 登录