Skip to content
Commit 7e07e7c0 authored by Tushar Behera's avatar Tushar Behera Committed by Mark Brown
Browse files

ASoC: core: Fix possible NULL pointer dereference



snd_soc_of_parse_card_name() may be called before card->dev has been
set, which results in a kernel panic.

Unable to handle kernel NULL pointer dereference at virtual address 00000210
PC is at snd_soc_of_parse_card_name+0x18/0x54
LR is at snow_probe+0x5c/0xd4

Add an error check in snd_soc_of_parse_card_name() to take care of this
case and print out a message in case of error.

Signed-off-by: default avatarTushar Behera <tushar.b@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 1e4c0d7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment