2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/drivers/media/radio
Mauro Carvalho Chehab 02d7324337 media: radio-si476x: fix behavior when seek->range* are defined
The logic at si476x_radio_s_hw_freq_seek() checks if the
frequency range that will be used to handle hardware seek
has the minimal frequency under rangelow. That works fine
if userspace zeros both fields. However, if userspace
fills either seek->rangelow or seek-rangehigh, it won't
read the corresponding range from the device, causing the
values to be unitialized, as warned by smatch:

	drivers/media/radio/radio-si476x.c:789 si476x_radio_s_hw_freq_seek() error: uninitialized symbol 'rangelow'.
	drivers/media/radio/radio-si476x.c:789 si476x_radio_s_hw_freq_seek() error: uninitialized symbol 'rangehigh'.

Fix it by initializing those vars from the values present at
the struct v4l2_hw_freq_seek.

While here, simplify the logic which reads such values from
the hardware limits.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-11 13:04:51 -05:00
..
si470x media: radio-si470x: make si470x_viddev_template const 2017-10-31 06:38:22 -04:00
si4713 media: radio: make video_device const 2017-08-27 08:47:20 -04:00
wl128x media: radio: Convert timers to use timer_setup() 2017-10-31 07:25:17 -04:00
dsbr100.c media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
Kconfig [media] radio-raremono: add support for 'Thanko's Raremono' AM/FM/SW USB device 2013-12-18 11:30:32 -02:00
lm7000.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
radio-aimslab.c [media] radio/aimslab: use mdelay instead of udelay 2015-02-02 11:07:09 -02:00
radio-aztech.c exynos4-is: remove some unused vars 2016-06-24 08:36:13 -03:00
radio-cadet.c media: radio: Convert timers to use timer_setup() 2017-10-31 07:25:17 -04:00
radio-gemtek.c media: radio: constify pnp_device_id 2017-08-20 08:25:11 -04:00
radio-isa.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
radio-isa.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
radio-keene.c media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
radio-ma901.c media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
radio-maxiradio.c media: radio: constify pci_device_id 2017-08-09 09:47:57 -04:00
radio-miropcm20.c [media] media/radio: fix radio-miropcm20.c build with io.h header file 2014-09-21 20:50:38 -03:00
radio-mr800.c media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
radio-raremono.c media: radio-raremono: remove redundant initialization of freq 2017-10-31 07:26:39 -04:00
radio-rtrack2.c [media] radio-rtrack2: fix mute bug 2013-03-05 15:20:07 -03:00
radio-sf16fmi.c [media] radio-sf16fmi: declare pnp_attached as static 2014-09-26 06:47:55 -03:00
radio-sf16fmr2.c media: radio: constify pnp_device_id 2017-08-20 08:25:11 -04:00
radio-shark2.c media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
radio-shark.c media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
radio-si476x.c media: radio-si476x: fix behavior when seek->range* are defined 2017-12-11 13:04:51 -05:00
radio-tea5764.c media: radio: make video_device const 2017-08-27 08:47:20 -04:00
radio-tea5777.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
radio-tea5777.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
radio-terratec.c
radio-timb.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
radio-trust.c
radio-typhoon.c
radio-wl1273.c media: radio-wl1273: fix a parameter name at kernel-doc macro 2017-11-30 04:19:01 -05:00
radio-zoltrix.c
saa7706h.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tea575x.c [media] tea575x: convert to library 2016-02-10 09:34:28 -02:00
tef6862.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00