linux/sound/pci
Gergo Koteles 3307142271 ALSA: hda/tas2781: handle missing EFI calibration data
The code does not properly check whether the calibration variable is
available in the EFI. If it is not available, it causes a NULL pointer
dereference.

Check the return value of the first get_variable call also.

BUG: kernel NULL pointer dereference, address: 0000000000000000
Call Trace:
 <TASK>
 ? __die+0x23/0x70
 ? page_fault_oops+0x171/0x4e0
 ? srso_alias_return_thunk+0x5/0x7f
 ? schedule+0x5e/0xd0
 ? exc_page_fault+0x7f/0x180
 ? asm_exc_page_fault+0x26/0x30
 ? crc32_body+0x2c/0x120
 ? tas2781_save_calibration+0xe4/0x220 [snd_hda_scodec_tas2781_i2c]
 tasdev_fw_ready+0x1af/0x280 [snd_hda_scodec_tas2781_i2c]
 request_firmware_work_func+0x59/0xa0

Fixes: 5be27f1e3e ("ALSA: hda/tas2781: Add tas2781 HDA driver")
CC: stable@vger.kernel.org
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/f1f6583bda918f78556f67d522ca7b3b91cebbd5.1702251102.git.soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2023-12-11 08:58:18 +01:00
..
ac97 ALSA: ac97: Fix possible error value of *rac97 2023-08-24 10:02:01 +02:00
ali5451
asihpi extract and use FILE_LINE macro 2023-10-18 14:43:21 -07:00
au88x0
aw2
ca0106 ALSA: ca0106: Use the standard snd_ctl_add_followers() helper 2023-07-21 09:37:48 +02:00
cs46xx ALSA: cs46xx: Simplify with snd_ctl_find_id_mixer() 2023-07-21 09:10:39 +02:00
cs5535audio ALSA: cs5535audio: Remove the redundant assignment 2022-11-07 09:16:31 +01:00
ctxfi
echoaudio
emu10k1 ALSA: emu10k1: Simplify with snd_ctl_find_id_mixer() 2023-07-21 09:10:40 +02:00
hda ALSA: hda/tas2781: handle missing EFI calibration data 2023-12-11 08:58:18 +01:00
ice1712 ALSA: ice1712: Use the standard snd_ctl_add_followers() helper 2023-07-21 09:37:49 +02:00
korg1212 ALSA: korg1212: Convert to generic PCM copy ops 2023-08-18 12:18:20 +02:00
lola
lx6464es ALSA: pci: lx6464es: fix a debug loop 2023-02-01 13:14:26 +01:00
mixart ALSA: mixart: Replace with __packed attribute 2023-10-26 09:43:03 +02:00
nm256 ALSA: nm256: Convert to generic PCM copy ops 2023-08-18 12:18:21 +02:00
oxygen
pcxhr
riptide ALSA: riptide: Fix -Wformat-truncation warning for longname string 2023-09-15 13:23:06 +02:00
rme9652 ALSA: rme9652: Convert to generic PCM copy ops 2023-08-18 12:18:24 +02:00
trident
vx222
ymfpci ALSA: ymfpci: Fix the missing snd_card_free() call at probe error 2023-08-23 18:17:33 +02:00
ad1889.c
ad1889.h
ak4531_codec.c
als300.c
als4000.c
atiixp_modem.c
atiixp.c
azt3328.c ALSA: azt3328: Replace with __packed attribute 2023-10-26 09:42:59 +02:00
azt3328.h
bt87x.c
cmipci.c ALSA: cmipci: Fix -Wformat-truncation warning 2023-09-15 13:22:16 +02:00
cs4281.c
cs5530.c
ens1370.c
ens1371.c
es1938.c ALSA: es1938: Convert to generic PCM copy ops 2023-08-18 12:18:19 +02:00
es1968.c ALSA: es1968: Simplify with snd_ctl_find_id_mixer() 2023-07-21 09:10:41 +02:00
fm801.c
intel8x0.c
intel8x0m.c ALSA: intel8x0m: fix name of SIS7013 sound chip in comment 2023-10-06 11:11:40 +02:00
Kconfig ALSA: add HAS_IOPORT dependencies 2023-05-22 16:43:47 +02:00
maestro3.c ALSA: maestro3: Simplify with snd_ctl_find_id_mixer() 2023-07-21 09:10:42 +02:00
Makefile
rme32.c ALSA: rme32: Convert to generic PCM copy ops 2023-08-18 12:18:21 +02:00
rme96.c ALSA: rme96: Convert to generic PCM copy ops 2023-08-18 12:18:22 +02:00
sis7019.c
sis7019.h
sonicvibes.c
via82xx_modem.c
via82xx.c ALSA: via82xx: Simplify with snd_ctl_find_id_mixer() 2023-07-21 09:10:43 +02:00