WSL2-Linux-Kernel/sound/pci
Takashi Iwai 5e93a125f5 ALSA: hda - Fix incorrect clearance of thinkpad_acpi hooks
Since the commit c647f806b8 ("ALSA: hda - Allow multiple ADCs for
mic mute LED controls") we allow enabling the mic mute LED with
multiple ADCs.  The commit changed the function return value to be
zero or a negative error, while this change was overlooked in the
thinkpad_acpi helper code where it still expects a positive return
value for success.  This eventually leads to a NULL dereference on a
system that has only a mic mute LED.

This patch corrects the return value check in the corresponding code
as well.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201621
Fixes: c647f806b8 ("ALSA: hda - Allow multiple ADCs for mic mute LED controls")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-06 16:33:53 +01:00
..
ac97 ALSA: pci: Remove empty init and exit 2018-08-03 16:11:48 +02:00
ali5451
asihpi ALSA: asihpi: don't pass GFP_DMA32 to dma_alloc_coherent 2018-10-14 09:40:24 +02:00
au88x0 ALSA: au88xx: Add fall-through annotations 2018-10-12 09:31:34 +02:00
aw2
ca0106 ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops 2018-10-29 16:59:06 +01:00
cs46xx ALSA: cs46xx: Use SNDRV_PCM_INFO_SYNC_APPLPTR info flag 2018-09-04 12:13:40 +02:00
cs5535audio ALSA: cs5535audio: remove redundant pointer 'dma' 2018-08-01 13:59:29 +02:00
ctxfi ALSA: ctxfi: cthw20k2: Replace mdelay() with msleep() and usleep_range() 2018-07-27 11:49:16 +02:00
echoaudio ALSA: echoaudio: Mark expected switch fall-throughs 2018-08-06 09:33:45 +02:00
emu10k1 Merge branch 'for-linus' into for-next 2018-10-04 07:53:06 +02:00
hda ALSA: hda - Fix incorrect clearance of thinkpad_acpi hooks 2018-11-06 16:33:53 +01:00
ice1712 ALSA: pci: Remove empty init and exit 2018-08-03 16:11:48 +02:00
korg1212 ALSA: korg1212: Add __force annotation to cast in user-copy callbacks 2018-07-26 08:33:08 +02:00
lola ALSA: lola: Proper endian notations 2018-07-27 09:06:05 +02:00
lx6464es
mixart ALSA: mixart: Mark expected switch fall-through 2018-08-09 08:52:04 +02:00
nm256
oxygen
pcxhr
riptide ALSA: riptide: Properly endian notations 2018-07-27 09:06:02 +02:00
rme9652 ALSA: hdspm: fix spelling mistake "Initializeing" -> "Initializing" 2018-08-27 11:05:39 +02:00
trident ALSA: trident: Proper endian notations 2018-07-27 09:06:00 +02:00
vx222 ALSA: vx222: Fix invalid endian conversions 2018-07-26 08:23:28 +02:00
ymfpci ALSA: ymfpci: Proper endian notations 2018-07-27 09:05:58 +02:00
Kconfig
Makefile
ad1889.c
ad1889.h
ak4531_codec.c
als300.c
als4000.c
atiixp.c ALSA: atiixp: fix fall-through annotations 2018-09-14 15:27:04 +02:00
atiixp_modem.c ALSA: atiixp_modem: Proper endian notations 2018-07-27 09:06:13 +02:00
azt3328.c
azt3328.h
bt87x.c ALSA: bt87x: Proper endian notations 2018-07-27 09:06:11 +02:00
cmipci.c
cs4281.c
cs5530.c
ens1370.c ALSA: ens137x: remove redundant array pcm_devs 2018-08-01 13:59:58 +02:00
ens1371.c
es1938.c
es1968.c
fm801.c
intel8x0.c ALSA: intel8x0: Fix fall-through annotations 2018-10-03 17:42:55 +02:00
intel8x0m.c ALSA: intel8x0m: Register irq handler after register initializations 2018-09-13 07:58:43 +02:00
maestro3.c ALSA: maestro3: Proper endian notations 2018-07-27 09:06:08 +02:00
rme32.c ALSA: rme32: Use SNDRV_PCM_INFO_SYNC_APPLPTR info flag 2018-09-04 12:13:09 +02:00
rme96.c
sis7019.c
sis7019.h
sonicvibes.c ALSA: sonicvibes: remove redundant pointer 'dir' 2018-08-01 14:00:13 +02:00
via82xx.c
via82xx_modem.c