linux/drivers/media
Mauro Carvalho Chehab 00b4bac78f media: imx274: don't randomly return if range_count is zero
As smatch reported:
	drivers/media/i2c/imx274.c:659 imx274_regmap_util_write_table_8() error: uninitialized symbol 'err'.

There is a bug at imx274_regmap_util_write_table_8() with causes
it to randomly return a random error if range_count is zero.

Worse than that, the logic there starts with range_count
equal to zero, and periodically resets it to zero again.

As it is a way more likely that err assumes a non-zero value,
I suspect that the chance of this code to run is very small,
so, it would be worth to review the entire function.

Anyway, clearly it shouldn't be returning error if range_count
is zero. So, let's fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-11 13:04:53 -05:00
..
cec media: cec: disable the hardware when unregistered 2017-12-08 11:11:25 -05:00
common media: siano: add SPDX markups 2017-12-11 07:44:07 -05:00
dvb-core media: dvb_net: stop abusing /** for comments 2017-11-27 10:35:34 -05:00
dvb-frontends media: stv090x: Only print tuner lock if get_status is available 2017-12-11 13:04:52 -05:00
firewire
i2c media: imx274: don't randomly return if range_count is zero 2017-12-11 13:04:53 -05:00
mmc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci media: ddbridge: shut up a new warning 2017-12-11 13:04:49 -05:00
platform media: atmel-isc: avoid returning a random value at isc_parse_dt() 2017-12-11 13:04:50 -05:00
radio media: radio-si476x: fix behavior when seek->range* are defined 2017-12-11 13:04:51 -05:00
rc media: rc keymaps: add SPDX identifiers to the code I wrote 2017-12-11 07:42:54 -05:00
spi
tuners media: xc4000: don't ignore error if hwmodel fails 2017-12-11 13:04:52 -05:00
usb media: em28xx: Fix use-after-free when disconnecting 2017-12-11 13:04:50 -05:00
v4l2-core media: v4l: async: use the v4l2_dev from the root notifier when matching sub-devices 2017-11-30 04:44:07 -05:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00