]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
V4L/DVB: v4l: soc_camera: fix bound checking of mbus_fmt[] index
authorBaruch Siach <baruch@tkos.co.il>
Fri, 19 Feb 2010 17:09:25 +0000 (14:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:11 +0000 (15:11 -0300)
commit84f3751d6a6f766780dee509433bf7b3dfcdf465
treec009fded152e598837a0c48af802ef386c77ac60
parent4f3ca2f152844c5f6ea853077f56d0db877d1f7a
V4L/DVB: v4l: soc_camera: fix bound checking of mbus_fmt[] index

When code <= V4L2_MBUS_FMT_FIXED soc_mbus_get_fmtdesc returns a pointer to
mbus_fmt[x], where x < 0. Fix this.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
CC: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_mediabus.c