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 <[email protected]> Tested-by: Stephen Gordon <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2518a0e commit c890324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)