linux/sound/soc/sh/rcar
Colin Ian King 0ea617a298 ASoC: rsnd: don't double free kctrl
On an error, snd_ctl_add already free's kctrl, so calling snd_ctl_free_one
to free it again leads to a double free error.  Fix this by removing
the extraneous snd_ctl_free_one call.

Issue found using static analysis with CoverityScan, CID 1372908

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-12-15 11:04:23 +00:00
..
adg.c ASoC: rsnd: setup BRGCKR/BRRA/BRRB when starting 2016-12-07 15:47:45 +00:00
cmd.c ASoC: rsnd: each mod has status again for CTU/MUX support 2016-01-22 17:12:25 +00:00
core.c ASoC: rsnd: don't double free kctrl 2016-12-15 11:04:23 +00:00
ctu.c ASoC: rsnd: add CTU support 2016-03-05 13:27:27 +09:00
dma.c ASoC: rsnd: use dma_sync_single_for_xxx() for IOMMU 2016-11-22 17:25:52 +00:00
dvc.c ASoC: rsnd: remove duplicate define of rsnd_dvc_of_node() 2016-10-24 18:23:29 +01:00
gen.c ASoC: rsnd: use BRGCKR instead of SSICKR 2016-10-28 19:17:15 +01:00
Makefile ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase3 2016-08-24 11:19:16 +01:00
mix.c ASoC: rsnd: add rsnd_runtime_channel_xxx() 2016-03-05 13:27:27 +09:00
rsnd.h ASoC: rsnd: enable/disable ADG when suspend/resume timing 2016-12-07 15:47:45 +00:00
src.c ASoC: rsnd: enable SRC sync even FIN = FOUT 2016-10-27 11:14:34 +01:00
ssi.c ASoC: rsnd: tidyup ssi->usrcnt counter check in hw_params 2016-12-07 15:47:44 +00:00
ssiu.c ASoC: rsnd: clear SSI_SYS_STATUSx every time 2016-10-26 17:46:17 +01:00