projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d1d7ce
)
ASoC: sst_platform: free the resources on fail path
author
Lu Guanqun
<guanqun.lu@intel.com>
Wed, 6 Apr 2011 02:20:32 +0000
(10:20 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 6 Apr 2011 14:15:23 +0000
(23:15 +0900)
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mid-x86/sst_platform.c
patch
|
blob
|
history
diff --git
a/sound/soc/mid-x86/sst_platform.c
b/sound/soc/mid-x86/sst_platform.c
index
bd9d928
..
848ad3c
100644
(file)
--- 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;