android_kernel_motorola_sm6375/sound/isa
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xiaomeng Tong a86bde8930 ALSA: cs4236: fix an incorrect NULL check on list iterator
commit 0112f822f8a6d8039c94e0bc9b264d7ffc5d4704 upstream.

The bug is here:
	err = snd_card_cs423x_pnp(dev, card->private_data, pdev, cdev);

The list iterator value 'cdev' will *always* be set and non-NULL
by list_for_each_entry(), so it is incorrect to assume that the
iterator value will be NULL if the list is empty or no element
is found.

To fix the bug, use a new variable 'iter' as the list iterator,
while use the original variable 'cdev' as a dedicated pointer
to point to the found element. And snd_card_cs423x_pnp() itself
has NULL check for cdev.

Cc: [email protected]
Fixes: c2b73d1458 ("ALSA: cs4236: cs4232 and cs4236 driver merge to solve PnP BIOS detection")
Signed-off-by: Xiaomeng Tong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-04-15 14:18:00 +02:00
..
ad1816a
ad1848
cs423x ALSA: cs4236: fix an incorrect NULL check on list iterator 2022-04-15 14:18:00 +02:00
es1688
galaxy
gus ALSA: gus: fix null pointer dereference on pointer block 2021-11-26 10:47:16 +01:00
msnd
opti9xx
sb ALSA: sb: Fix potential ABBA deadlock in CSP driver 2021-07-28 13:30:59 +02:00
wavefront ALSA: isa/wavefront: prevent out of bounds write in ioctl 2020-06-24 17:50:11 +02:00
wss
adlib.c
als100.c
azt2320.c
cmi8328.c
cmi8330.c ALSA: isa: Fix error return code in snd_cmi8330_probe() 2021-07-20 16:10:50 +02:00
es18xx.c
Kconfig ALSA: ISA: not for M68K 2021-11-26 10:47:16 +01:00
Makefile
opl3sa2.c
sc6000.c
sscape.c