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
..
2016-12-15 11:04:23 +00:00
2014-12-14 16:10:09 -08:00
2016-10-26 13:13:25 +01:00
2013-07-28 19:34:09 +01:00
2015-05-06 11:58:59 +01:00
2010-11-22 14:04:53 +00:00