linux/drivers/media
Arnd Bergmann 5dfbf6c51c [media] rcar_drif: fix potential uninitialized variable use
Older compilers like gcc-4.6 may run into a case that returns
an uninitialized variable from rcar_drif_enable_rx() if that
function was ever called with an empty cur_ch_mask:

drivers/media/platform/rcar_drif.c:658:2: error: ‘ret’ may be used uninitialized in this function [-Werror=uninitialized]

Newer compilers don't have that problem as they optimize the
'ret' variable away and just return zero in that case.

This changes the function to return -EINVAL for this particular
failure, to make it consistent across all compiler versions.
In case gcc gets changed to report a warning for it in the
future, it's also a good idea to shut it up now.

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82203

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2017-10-04 16:58:05 -03:00
..
cec [media] media: rc: ensure that protocols are enabled for scancode drivers 2017-10-04 15:22:26 -03:00
common [media] saa7146: make saa7146_use_ops const 2017-10-04 16:57:33 -03:00
dvb-core media: get rid of removed DMX_GET_CAPS and DMX_SET_SOURCE leftovers 2017-09-05 08:25:07 -04:00
dvb-frontends media: fix media Kconfig help syntax issues 2017-09-23 14:59:24 -04:00
firewire
i2c [media] media: i2c: adv748x: Map v4l2_std_id to the internal reg value 2017-10-04 16:56:05 -03:00
mmc
pci Linux 4.14-rc2 2017-09-29 05:24:10 -04:00
platform [media] rcar_drif: fix potential uninitialized variable use 2017-10-04 16:58:05 -03:00
radio media: fix media Kconfig help syntax issues 2017-09-23 14:59:24 -04:00
rc [media] imon: Improve a size determination in two functions 2017-10-04 16:19:40 -03:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: dvb: i2c transfers over usb cannot be done from stack 2017-09-23 07:21:33 -04:00
usb [media] gspca: make arrays static, reduces object code size 2017-10-04 16:57:01 -03:00
v4l2-core media: v4l-ioctl: Fix typo on v4l_print_frmsizeenum 2017-09-23 14:56:23 -04:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03: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: Make parameter of media_entity_remote_pad() const 2017-07-20 16:54:04 -04:00