WSL2-Linux-Kernel/drivers/staging/greybus
Jakob Koschel b34163bf99 staging: greybus: codecs: fix type confusion of list iterator variable
[ Upstream commit 84ef256550 ]

If the list does not exit early then data == NULL and 'module' does not
point to a valid list element.
Using 'module' in such a case is not valid and was therefore removed.

Fixes: 6dd67645f2 ("greybus: audio: Use single codec driver registration")
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Link: https://lore.kernel.org/r/20220321123626.3068639-1-jakobkoschel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:02 +02:00
..
Documentation
tools
Kconfig
Makefile
TODO
arche-apb-ctrl.c
arche-platform.c
arche_platform.h
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c staging: greybus: codecs: fix type confusion of list iterator variable 2022-06-14 18:36:02 +02:00
audio_codec.h
audio_gb.c
audio_helper.c staging: greybus: Add missing rwsem around snd_ctl_remove() calls 2021-12-01 09:04:41 +01:00
audio_helper.h
audio_manager.c
audio_manager.h
audio_manager_module.c
audio_manager_private.h
audio_manager_sysfs.c
audio_module.c
audio_topology.c staging: greybus: audio: Check null pointer 2022-01-27 11:03:52 +01:00
authentication.c
bootrom.c
camera.c
firmware.h
fw-core.c
fw-download.c
fw-management.c
gb-camera.h
gbphy.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
gbphy.h
gpio.c
greybus_authentication.h
greybus_firmware.h
hid.c
i2c.c
light.c
log.c
loopback.c
power_supply.c
pwm.c
raw.c
sdio.c
spi.c
spilib.c staging: greybus: spi: add blank line after variable declaration 2021-05-20 11:40:36 +02:00
spilib.h
uart.c staging: greybus: uart: fix tty use after free 2021-09-14 09:18:18 +02:00
usb.c
vibrator.c