linux_dsm_epyc7002/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
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
radio-aztech.c
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
radio-isa.h
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
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
radio-sf16fmi.c
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
radio-tea5777.h
radio-terratec.c
radio-timb.c
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
tea575x.c
tef6862.c