linux/drivers/media/usb/tlg2300
Alexey Khoroshilov ac22521cb2 [media] tlg2300: fix checking firmware in poseidon_probe()
check_firmware() makes sure firmware is in a device.
It returns zero on success and error code otherwise.
Also it sets down_firmware flag to 1 if downloading occurs.
The only caller poseidon_probe() checks down_firmware flag and
returns 0 without any initialization if it is set.
That looks very strange, so the patch removes down_firmware argument
of check_firmware() and returns error code if check_firmware() fails
in poseidon_probe().
Not tested on real hardware.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-07-26 13:28:26 -03:00
..
Kconfig [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
Makefile [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
pd-alsa.c [media] pd-alsa: fix compilation breakage by commit da35de640 2012-09-23 16:51:57 -03:00
pd-common.h [media] tlg2300: Remove logs() macro 2013-03-05 11:49:01 -03:00
pd-dvb.c [media] remove include/linux/dvb/dmx.h 2012-10-19 07:29:17 -03:00
pd-main.c [media] tlg2300: fix checking firmware in poseidon_probe() 2013-07-26 13:28:26 -03:00
pd-radio.c [media] v4l2: add const to argument of write-only s_tuner ioctl 2013-03-24 06:31:23 -03:00
pd-video.c [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
vendorcmds.h [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00