diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2011-04-06 10:20:32 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-06 23:15:23 +0900 |
commit | 83a3fd3cf0bfdadfdfc633f6437f9121e28252b9 (patch) | |
tree | 9fb9cb674a08ee6f84163d89e6d487519ad9a66e /sound/soc/mid-x86 | |
parent | 0d1d7ce95156e0b040f1a4029613716aafd791b1 (diff) | |
download | linux-83a3fd3cf0bfdadfdfc633f6437f9121e28252b9.tar.gz linux-83a3fd3cf0bfdadfdfc633f6437f9121e28252b9.tar.bz2 linux-83a3fd3cf0bfdadfdfc633f6437f9121e28252b9.zip |
ASoC: sst_platform: free the resources on fail path
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/mid-x86')
-rw-r--r-- | sound/soc/mid-x86/sst_platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mid-x86/sst_platform.c b/sound/soc/mid-x86/sst_platform.c index bd9d928dc767..848ad3ce732e 100644 --- a/sound/soc/mid-x86/sst_platform.c +++ b/sound/soc/mid-x86/sst_platform.c @@ -252,6 +252,8 @@ static int sst_platform_open(struct snd_pcm_substream *substream) ret_val = register_sst_card(stream->sstdrv_ops); if (ret_val) { pr_err("sst: sst card registration failed\n"); + kfree(stream->sstdrv_ops); + kfree(stream); return ret_val; } runtime->private_data = stream; |