linux-stable/drivers/media/pci/saa7134
Jakob Koschel 0fe6ac436c media: saa7134: fix incorrect use to determine if list is empty
[ Upstream commit 9f1f4b6424 ]

'dev' will *always* be set by list_for_each_entry().
It is incorrect to assume that the iterator value will be NULL if the
list is empty.

Instead of checking the pointer it should be checked if
the list is empty.

Fixes: 79dd0c69f0 ("V4L: 925: saa7134 alsa is now a standalone module")
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:57:52 +02:00
..
Kconfig Revert "media: Kconfig: better support hybrid TV devices" 2020-04-14 11:00:30 +02:00
Makefile
saa7134-alsa.c media: saa7134: fix incorrect use to determine if list is empty 2022-04-08 13:57:52 +02:00
saa7134-cards.c media: saa7134: Add support for Leadtek WinFast HDTV200 H 2021-10-19 08:08:38 +01:00
saa7134-core.c media: saa7134: switch from 'pci_' to 'dma_' API 2021-07-12 09:16:35 +02:00
saa7134-dvb.c media: saa7134: Add support for Leadtek WinFast HDTV200 H 2021-10-19 08:08:38 +01:00
saa7134-empress.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
saa7134-go7007.c media: saa7134-go7007: get rid of to_state() function 2021-11-29 10:15:04 +01:00
saa7134-i2c.c media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate() 2019-08-26 10:45:49 -03:00
saa7134-input.c media: pci: saa7134: convert to use i2c_new_client_device() 2020-04-14 11:29:10 +02:00
saa7134-reg.h
saa7134-ts.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
saa7134-tvaudio.c media: saa7134: drop a NO-BREAK SPACE 2021-06-04 08:10:26 +02:00
saa7134-vbi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
saa7134-video.c media: subdev: disallow ioctl for saa6588/davinci 2021-06-17 10:18:37 +02:00
saa7134.h media: saa7134: Add support for Leadtek WinFast HDTV200 H 2021-10-19 08:08:38 +01:00