X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=sound%2Fsoc%2Fgeneric%2Fsimple-card.c;h=fb550b5869d21f73307d36d2edc88ebcffa61f0c;hb=0004defd4e44d81966b0c4164c2ee01f20ab357b;hp=f7c6734bd5daee1dafd76ba8b6feafa05b2a6c52;hpb=fee5429e028c414d80d036198db30454cfd91b7a;p=karo-tx-linux.git diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index f7c6734bd5da..fb550b5869d2 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -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->codec_dai_name) + 2, GFP_KERNEL); + if (!name) { + ret = -ENOMEM; + goto dai_link_of_err; + } + sprintf(name, "%s-%s", dai_link->cpu_dai_name, dai_link->codec_dai_name); dai_link->name = dai_link->stream_name = name;