aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/mid-x86/sst_platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/mid-x86/sst_platform.c')
-rw-r--r--sound/soc/mid-x86/sst_platform.c2
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 bd9d928dc76..848ad3ce732 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)
252 ret_val = register_sst_card(stream->sstdrv_ops); 252 ret_val = register_sst_card(stream->sstdrv_ops);
253 if (ret_val) { 253 if (ret_val) {
254 pr_err("sst: sst card registration failed\n"); 254 pr_err("sst: sst card registration failed\n");
255 kfree(stream->sstdrv_ops);
256 kfree(stream);
255 return ret_val; 257 return ret_val;
256 } 258 }
257 runtime->private_data = stream; 259 runtime->private_data = stream;