提交 2824ef9b 编写于 作者: M Mark Brown

Merge remote-tracking branch 'asoc/fix/simple' into asoc-linus

...@@ -372,6 +372,11 @@ static int asoc_simple_card_dai_link_of(struct device_node *node, ...@@ -372,6 +372,11 @@ static int asoc_simple_card_dai_link_of(struct device_node *node,
strlen(dai_link->cpu_dai_name) + strlen(dai_link->cpu_dai_name) +
strlen(dai_link->codec_dai_name) + 2, strlen(dai_link->codec_dai_name) + 2,
GFP_KERNEL); GFP_KERNEL);
if (!name) {
ret = -ENOMEM;
goto dai_link_of_err;
}
sprintf(name, "%s-%s", dai_link->cpu_dai_name, sprintf(name, "%s-%s", dai_link->cpu_dai_name,
dai_link->codec_dai_name); dai_link->codec_dai_name);
dai_link->name = dai_link->stream_name = name; dai_link->name = dai_link->stream_name = name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册