2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/drivers/media/i2c
Sylwester Nawrocki 94c15b5e67 [media] s5k6aa: Fix possible NULL pointer dereference
Make sure __s5k6aa_get_crop_rect() always returns valid pointer,
as it is assumed at the callers.
crop->which is already validated when subdev set_crop and get_crop
callbacks are called from within the v4l2-core. If it ever happens
the crop operations are called directly for some reason in kernel
space, with incorrect crop->which argument, just log it with WARN
and return reference to the TRY crop.

Reported-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-02 14:01:30 -03:00
..
cx25840 [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
m5mols [media] m5mols: Protect driver data with a mutex 2012-10-01 20:59:36 -03:00
smiapp [media] smiapp: Provide module identification information through sysfs 2012-09-26 17:43:54 -03:00
soc_camera [media] v4l2: make vidioc_s_crop const 2012-09-26 11:02:25 -03:00
ad9389b.c [media] ad9389b: driver for the Analog Devices AD9389B video encoder 2012-09-13 16:15:36 -03:00
adp1653.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7170.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7175.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7180.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7183_regs.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7183.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7343_regs.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7343.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7393_regs.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7393.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
adv7604.c [media] adv7604: driver for the Analog Devices ADV7604 video decoder 2012-09-13 16:13:47 -03:00
ak881x.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
aptina-pll.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
aptina-pll.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
as3645a.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
bt819.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
bt856.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
bt866.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
btcx-risc.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
btcx-risc.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
cs53l32a.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
cs5345.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
cx2341x.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
ir-kbd-i2c.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
Kconfig [media] Add v4l2 subdev driver for S5K4ECGX sensor 2012-09-26 17:32:54 -03:00
ks0127.c [media] ks0127: convert struct i2c_msg initialization to C99 format 2012-09-27 07:38:40 -03:00
ks0127.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
m52790.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
Makefile [media] Add v4l2 subdev driver for S5K4ECGX sensor 2012-09-26 17:32:54 -03:00
msp3400-driver.c [media] msp3400: convert struct i2c_msg initialization to C99 format 2012-09-27 07:39:31 -03:00
msp3400-driver.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
msp3400-kthreads.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
mt9m032.c [media] mt9m032.c: introduce missing initialization 2012-09-14 11:10:59 -03:00
mt9p031.c [media] mt9p031: Fix horizontal and vertical blanking configuration 2012-09-13 16:29:49 -03:00
mt9t001.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
mt9v011.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
mt9v032.c [media] mt9v032: Export horizontal and vertical blanking as V4L2 controls 2012-09-13 16:29:31 -03:00
noon010pc30.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
ov7670.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
s5k4ecgx.c [media] Add v4l2 subdev driver for S5K4ECGX sensor 2012-09-26 17:32:54 -03:00
s5k6aa.c [media] s5k6aa: Fix possible NULL pointer dereference 2012-10-02 14:01:30 -03:00
saa711x_regs.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
saa717x.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
saa6588.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
saa7110.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
saa7115.c [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
saa7127.c [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
saa7185.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
saa7191.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
saa7191.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
smiapp-pll.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
smiapp-pll.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
sr030pc30.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tcm825x.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tcm825x.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tda7432.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tda9840.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tea6415c.c [media] drivers/media/i2c/tea6415c.c: removes unnecessary semicolon 2012-09-23 17:04:38 -03:00
tea6415c.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tea6420.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tea6420.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
ths7303.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tlv320aic23b.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tvaudio.c [media] tvaudio: convert struct i2c_msg initialization to C99 format 2012-09-27 07:38:49 -03:00
tveeprom.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tvp514x_regs.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tvp514x.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tvp5150_reg.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tvp5150.c [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
tvp7002_reg.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tvp7002.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
upd64031a.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
upd64083.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
vp27smpx.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
vpx3220.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
vs6624_regs.h [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
vs6624.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
wm8739.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
wm8775.c [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00