diff options
author | 2018-11-05 12:28:07 +0100 | |
---|---|---|
committer | 2018-11-06 16:33:53 +0100 | |
commit | 5e93a125f521efd00d71af31c2a301f3d46af48c (patch) | |
tree | 971bed0083a5fc4ed187da0b6db48c4dc2526046 /sound/pci/cs4281.c | |
parent | vga_switcheroo: Fix missing gpu_bound call at audio client registration (diff) | |
download | linux-5e93a125f521efd00d71af31c2a301f3d46af48c.tar.gz linux-5e93a125f521efd00d71af31c2a301f3d46af48c.tar.bz2 linux-5e93a125f521efd00d71af31c2a301f3d46af48c.zip |
ALSA: hda - Fix incorrect clearance of thinkpad_acpi hooks
Since the commit c647f806b8c2 ("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: c647f806b8c2 ("ALSA: hda - Allow multiple ADCs for mic mute LED controls")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs4281.c')
0 files changed, 0 insertions, 0 deletions