diff options
author | Mark Brown <broonie@kernel.org> | 2017-01-10 11:47:48 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-10 11:47:48 +0100 |
commit | df3c63d39dc95dcfd70d891238b4deccac8259d6 (patch) | |
tree | 2693befa9c5c2e6fc12febb516dc64e3a7c09fc4 /sound | |
parent | Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus (diff) | |
parent | ASoC: rsnd: don't double free kctrl (diff) | |
download | linux-df3c63d39dc95dcfd70d891238b4deccac8259d6.tar.xz linux-df3c63d39dc95dcfd70d891238b4deccac8259d6.zip |
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/rcar/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 4bd68de76130..99b5b0835c1e 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1030,10 +1030,8 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod, return -ENOMEM; ret = snd_ctl_add(card, kctrl); - if (ret < 0) { - snd_ctl_free_one(kctrl); + if (ret < 0) return ret; - } cfg->update = update; cfg->card = card; |