ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report
Pawel Harlozinski authored
commit 8f157d4f

 upstream.

Check for existance of jack before tracing.
NULL pointer dereference has been reported by KASAN while unloading
machine driver (snd_soc_cnl_rt274).
Signed-off-by: default avatarPawel Harlozinski <pawel.harlozinski@linux.intel.com>
Link: https://lore.kernel.org/r/20191112130237.10141-1-pawel.harlozinski@linux.intel.com

Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
51fb33d0
Name Last commit Last update
..
aoa ALSA: snd-aoa: add of_node_put() in error path
arm License cleanup: add SPDX GPL-2.0 license identifier to files with no license
atmel Merge tag 'asoc-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
core ALSA: pcm: oss: Avoid potential buffer overflows
drivers ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
firewire ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback
hda Revert "ALSA: hda: Flush interrupts on disabling"
i2c ALSA: i2c/cs8427: Fix int to char conversion
isa ALSA: sb8: add a check for request_region
mips ALSA: mips: constify snd_pcm_ops structures
oss License cleanup: add SPDX GPL-2.0 license identifier to files with no license
parisc License cleanup: add SPDX GPL-2.0 license identifier to files with no license
pci ALSA: hda - Fix pending unsol events at shutdown
pcmcia ALSA: vxpocket: Fix invalid endian conversions
ppc License cleanup: add SPDX GPL-2.0 license identifier to files with no license
sh ALSA: sh: Put missing KERN_* prefix
soc ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report
sparc ALSA: sparc: Fix invalid snd_free_pages() at error path
spi License cleanup: add SPDX GPL-2.0 license identifier to files with no license
synth ALSA: emux: Fix potential Spectre v1 vulnerabilities
usb ALSA: usb-audio: not submit urb for stopped endpoint
x86 ALSA: x86: Fix runtime PM for hdmi-lpe-audio
Kconfig ALSA: synth: Select snd-emux-synth explicitly
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license
ac97_bus.c Merge tag 'asoc-v4.2-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
last.c ALSA: Remove the last mention of SNDRV_MAIN_OBJECT_FILE
sound_core.c sound: fix a memory leak bug