linux/sound/soc/sirf
Gustavo A. R. Silva ae1c696a48
ASoC: sirf: Fix potential NULL pointer dereference
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>
2018-07-30 12:02:30 +01:00
..
Kconfig ASoC: sirf: Add audio usp interface driver 2014-07-03 17:11:40 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sirf-audio-port.c ASoC: sirf: Added blank line after declarations 2017-03-07 14:31:51 +01:00
sirf-audio.c ASoC: sirf: Added blank line after declarations 2017-03-07 14:31:51 +01:00
sirf-usp.c ASoC: sirf: Fix potential NULL pointer dereference 2018-07-30 12:02:30 +01:00
sirf-usp.h ASoC: sirf: remove duplicated bit-wise or of USP_RXFIFO_THD_INT 2018-02-26 10:19:20 +00:00