OpenCloudOS-Kernel/drivers/media/i2c
Mauro Carvalho Chehab 27c039750c [media] sr030pc30: don't read a new pointer
sr030pc30_get_fmt() can only succeed if both info->curr_win and
info->curr_fmt are not NULL.

If one of those vars are null, the curent code would call:
	ret = sr030pc30_set_params(sd);

If the curr_win is null, it will return -EINVAL, as it would be
expected. However, if curr_fmt is NULL, the function won't
set it.

The code will then try to read from it:

        mf->code        = info->curr_fmt->code;
        mf->colorspace  = info->curr_fmt->colorspace;

with obviouly won't work.

This got reported by smatch:
	drivers/media/i2c/sr030pc30.c:505 sr030pc30_get_fmt() error: we previously assumed 'info->curr_win' could be null (see line 499)
	drivers/media/i2c/sr030pc30.c:507 sr030pc30_get_fmt() error: we previously assumed 'info->curr_fmt' could be null (see line 499)

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-08-16 12:58:31 -03:00
..
cx25840 [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
m5mols [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5c73m3 [media] s5c73m3: Remove redundant spi driver bus initialization 2015-08-11 11:10:24 -03:00
smiapp [media] smiapp: Use v4l2_of_alloc_parse_endpoint() 2015-04-27 16:05:55 -03:00
soc_camera [media] mt9t112: JPEG -> SRGB 2015-08-11 09:50:22 -03:00
Kconfig [media] i2c: Make all i2c devices visible if COMPILE_TEST=y 2015-08-11 11:38:21 -03:00
Makefile [media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge 2015-07-17 09:59:28 -03:00
ad9389b.c [media] adv: use V4L2_DV_FL_IS_CE_VIDEO instead of V4L2_DV_BT_STD_CEA861 2015-04-08 06:38:31 -03:00
adp1653.c [media] media: i2c/adp1653: Devicetree support for adp1653 2015-04-27 16:19:23 -03:00
adv7170.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7175.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7180.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7183.c [media] v4l2: replace try_mbus_fmt by set_fmt 2015-05-01 08:48:49 -03:00
adv7183_regs.h [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
adv7343.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7343_regs.h [media] drivers: media: i2c: adv7343_regs.h: Fix typo in #ifndef 2014-09-21 20:12:13 -03:00
adv7393.c [media] media/i2c/adv7393: Remove compat control ops 2015-07-06 08:25:53 -03:00
adv7393_regs.h
adv7511.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7604.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7842.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ak881x.c [media] ak881x: simplify standard checks 2015-08-11 09:50:01 -03:00
aptina-pll.c
aptina-pll.h
as3645a.c [media] media: i2c: Convert to devm_kzalloc() 2013-05-21 07:52:15 -03:00
bt819.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
bt856.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
bt866.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
cs53l32a.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
cs5345.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ir-kbd-i2c.c [media] Export I2C module alias information in missing drivers 2015-08-11 17:51:28 -03:00
ks0127.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ks0127.h
lm3560.c [media] lm3560: simplify boolean tests 2014-09-03 17:59:24 -03:00
lm3646.c [media] lm3646: add new dual LED Flash driver 2014-03-11 10:00:26 -03:00
m52790.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ml86v7667.c [media] v4l2: replace video op g_mbus_fmt by pad op get_fmt 2015-05-01 08:36:17 -03:00
msp3400-driver.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
msp3400-driver.h
msp3400-kthreads.c
mt9m032.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
mt9p031.c [media] v4l: mt9p031: Convert to the gpiod API 2015-04-02 21:29:56 -03:00
mt9t001.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
mt9v011.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
mt9v032.c [media] mt9v032: fix uninitialized variable warning 2015-08-11 10:27:18 -03:00
noon010pc30.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
ov2659.c [media] ov2659: get rid of unused values 2015-08-16 12:55:50 -03:00
ov7640.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ov7670.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ov9650.c [media] ov9650: remove an extra space 2015-08-16 12:55:28 -03:00
s5k4ecgx.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5k5baf.c [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16 2015-06-10 11:43:19 -03:00
s5k6a3.c [media] Export I2C module alias information in missing drivers 2015-08-11 17:51:28 -03:00
s5k6aa.c [media] s5c73m3/s5k5baf/s5k6aa: fix compiler warnings 2015-04-28 09:24:51 -03:00
saa711x_regs.h [media] saa7115: Implement i2c_board_info.platform_data 2013-08-18 08:27:07 -03:00
saa717x.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa6588.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa6752hs.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa7110.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa7115.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa7127.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa7185.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
smiapp-pll.c [media] smiapp-pll: include linux/device.h in smiapp-pll.c, not in smiapp-pll.h 2014-12-23 11:29:01 -02:00
smiapp-pll.h [media] smiapp-pll: include linux/device.h in smiapp-pll.c, not in smiapp-pll.h 2014-12-23 11:29:01 -02:00
sony-btf-mpx.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
sr030pc30.c [media] sr030pc30: don't read a new pointer 2015-08-16 12:58:31 -03:00
tc358743.c [media] tc358743: don't use variable length array for I2C writes 2015-08-16 12:55:07 -03:00
tc358743_regs.h [media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge 2015-07-17 09:59:28 -03:00
tda7432.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tda9840.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tea6415c.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tea6415c.h
tea6420.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tea6420.h
ths7303.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ths8200.c [media] media: drop call to v4l2_device_unregister_subdev() 2015-03-03 11:21:41 -03:00
ths8200_regs.h [media] media: i2c: ths8200: driver for TI video encoder 2013-06-17 09:52:31 -03:00
tlv320aic23b.c [media] media/i2c/tlv320aic23: Remove compat control ops 2015-07-06 08:25:54 -03:00
tvaudio.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tvp514x.c [media] media/i2c/tvp514x: Remove compat control ops 2015-07-06 08:25:55 -03:00
tvp514x_regs.h
tvp5150.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tvp5150_reg.h
tvp7002.c [media] media/i2c/tvp7002: Remove compat control ops 2015-07-06 08:25:55 -03:00
tvp7002_reg.h
tw2804.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
tw9903.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tw9906.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
uda1342.c [media] media: i2c: Convert to devm_kzalloc() 2013-05-21 07:52:15 -03:00
upd64031a.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
upd64083.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
vp27smpx.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
vpx3220.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
vs6624.c [media] v4l2: replace try_mbus_fmt by set_fmt 2015-05-01 08:48:49 -03:00
vs6624_regs.h
wm8739.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
wm8775.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00