]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: gspca: Add error handling for stv06xx_read_sensor()
authorWentao Liang <vulab@iscas.ac.cn>
Tue, 22 Apr 2025 03:07:39 +0000 (11:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:11:17 +0000 (11:11 +0100)
commit5ae9ff1ee2be89e1b72a72124f64a81fc60c2de9
treeb02000cd3bdfb5f41dd494b37686459c5b82895e
parentca43a9386c0b5e737c99d3cfbc647e0ccd7d0c79
media: gspca: Add error handling for stv06xx_read_sensor()

commit 398a1b33f1479af35ca915c5efc9b00d6204f8fa upstream.

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: 4c98834addfe ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c