android_kernel_samsung_univ.../sound/soc
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
..
adi
atmel
au1x
bcm
blackfin
cirrus ASoC: cirrus: i2s: Fix {TX|RX}LinCtrlData setup 2018-07-03 11:21:27 +02:00
codecs
davinci
dwc
fsl
generic
intel ASoC: Intel: cht_bsw_max98090_ti: Fix jack initialization 2018-08-17 20:56:45 +02:00
jz4740
kirkwood
mediatek
mxs
nuc900
omap
pxa ASoC: pxa: Fix module autoload for platform drivers 2018-08-06 16:24:40 +02:00
qcom
rockchip
samsung ASoC: samsung: i2s: Ensure the RCLK rate is properly determined 2018-05-30 07:49:17 +02:00
sh
sirf ASoC: sirf: Fix potential NULL pointer dereference 2018-09-05 09:18:39 +02:00
spear
sti
sunxi
tegra
txx9
ux500
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-cache.c
soc-compress.c
soc-core.c
soc-dapm.c ASoC: dapm: delete dapm_kcontrol_data paths list before freeing it 2018-07-03 11:21:27 +02:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-io.c
soc-jack.c
soc-ops.c
soc-pcm.c ASoC: dpcm: don't merge format from invalid codec dai 2018-09-05 09:18:39 +02:00
soc-topology.c
soc-utils.c