diff options
author | Xi Wang <[email protected]> | 2012-04-06 09:32:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2012-04-18 11:09:03 -0300 |
commit | 5f0049bd69b96537dc7c02755c169fb4ccca3ddf (patch) | |
tree | 3fb163d8fa818edd1eaf4cfa2688c427494f9d46 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | 30059d93b07a034555defbf14d689a279fd7368d (diff) |
[media] v4l2-ctrls: fix integer overflow in v4l2_g_ext_ctrls()
A large cs->count from userspace may overflow the allocation size,
leading to memory corruption. v4l2_g_ext_ctrls() can be reached
from subdev_do_ioctl() or __video_do_ioctl().
Use kmalloc_array() to avoid the overflow.
Signed-off-by: Xi Wang <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions