Skip to content

Commit c890324

Browse files
morimotobroonie
authored andcommitted
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>
1 parent 2518a0e commit c890324

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/soc-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,6 +3369,9 @@ unsigned int snd_soc_daifmt_parse_clock_provider_raw(struct device_node *np,
33693369
char prop[128];
33703370
unsigned int bit, frame;
33713371

3372+
if (!np)
3373+
return 0;
3374+
33723375
if (!prefix)
33733376
prefix = "";
33743377

0 commit comments

Comments
 (0)