android_kernel_samsung_univ.../sound
Gustavo A. R. Silva 3e053c3561 ASoC: sirf: Fix potential NULL pointer dereference
commit ae1c696a480c67c45fb23b35162183f72c6be0e1 upstream.

There is a potential execution path in which function
platform_get_resource() returns NULL. If this happens,
we will end up having a NULL pointer dereference.

Fix this by replacing devm_ioremap with devm_ioremap_resource,
which has the NULL check and the memory region request.

This code was detected with the help of Coccinelle.

Cc: stable@vger.kernel.org
Fixes: 2bd8d1d5cf ("ASoC: sirf: Add audio usp interface driver")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:18:39 +02:00
..
aoa
arm
atmel
core ALSA: memalloc: Don't exceed over the requested size 2018-08-22 07:48:36 +02:00
drivers ALSA: aloop: Add missing cable lock to ctl API callbacks 2018-05-16 10:06:47 +02:00
firewire
hda
i2c
isa
mips
oss
parisc
pci ALSA: hda: Correct Asrock B85M-ITX power_save blacklist entry 2018-08-22 07:48:36 +02:00
pcmcia ALSA: vxpocket: Fix invalid endian conversions 2018-08-22 07:48:36 +02:00
ppc
sh
soc ASoC: sirf: Fix potential NULL pointer dereference 2018-09-05 09:18:39 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Apply rate limit to warning messages in URB complete callback 2018-08-06 16:24:35 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c