Revert "ASoC: meson: axg-card: fix 'use-after-free'"
This reverts commit aed46d91fa
.
This commit is contained in:
parent
e3fc313228
commit
06a8bed00b
1 changed files with 1 additions and 2 deletions
|
@ -104,7 +104,7 @@ static int axg_card_add_tdm_loopback(struct snd_soc_card *card,
|
||||||
int *index)
|
int *index)
|
||||||
{
|
{
|
||||||
struct meson_card *priv = snd_soc_card_get_drvdata(card);
|
struct meson_card *priv = snd_soc_card_get_drvdata(card);
|
||||||
struct snd_soc_dai_link *pad;
|
struct snd_soc_dai_link *pad = &card->dai_link[*index];
|
||||||
struct snd_soc_dai_link *lb;
|
struct snd_soc_dai_link *lb;
|
||||||
struct snd_soc_dai_link_component *dlc;
|
struct snd_soc_dai_link_component *dlc;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -114,7 +114,6 @@ static int axg_card_add_tdm_loopback(struct snd_soc_card *card,
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
pad = &card->dai_link[*index];
|
|
||||||
lb = &card->dai_link[*index + 1];
|
lb = &card->dai_link[*index + 1];
|
||||||
|
|
||||||
lb->name = devm_kasprintf(card->dev, GFP_KERNEL, "%s-lb", pad->name);
|
lb->name = devm_kasprintf(card->dev, GFP_KERNEL, "%s-lb", pad->name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue