mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
ASoC: soc-core: return 0 if np was NULL on snd_soc_daifmt_parse_clock_provider_raw()
snd_soc_daifmt_parse_clock_provider_raw() might be called with NULL np. Return 0 in such case. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Stephen Gordon <gordoste@iinet.net.au> Link: https://patch.msgid.link/87ttaco5jm.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2518a0e1b8
commit
c8903242bc
|
|
@ -3369,6 +3369,9 @@ unsigned int snd_soc_daifmt_parse_clock_provider_raw(struct device_node *np,
|
|||
char prop[128];
|
||||
unsigned int bit, frame;
|
||||
|
||||
if (!np)
|
||||
return 0;
|
||||
|
||||
if (!prefix)
|
||||
prefix = "";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user