linux-loongson/drivers/media/usb/gspca/stv06xx
Wentao Liang 398a1b33f1 media: gspca: Add error handling for stv06xx_read_sensor()
In hdcs_init(), the return value of stv06xx_read_sensor() needs to be
checked. A proper implementation can be found in vv6410_dump(). Add a
check in loop condition and propergate error code to fix this issue.

Fixes: 4c98834add ("V4L/DVB (10048): gspca - stv06xx: New subdriver.")
Cc: stable@vger.kernel.org # v2.6+
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2025-04-25 15:14:37 +02:00
..
Kconfig
Makefile
stv06xx_hdcs.c media: gspca: Add error handling for stv06xx_read_sensor() 2025-04-25 15:14:37 +02:00
stv06xx_hdcs.h
stv06xx_pb0100.c media: stv06xx: add missing descriptor sanity checks 2020-03-12 17:26:42 +01:00
stv06xx_pb0100.h
stv06xx_sensor.h
stv06xx_st6422.c
stv06xx_st6422.h
stv06xx_vv6410.c
stv06xx_vv6410.h
stv06xx.c media: gscpa/stv06xx: fix memory leak 2021-04-09 13:19:38 +02:00
stv06xx.h