aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r--sound/soc/codecs/wm_adsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index e61d00486c65..dec8716aa8ef 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -1519,7 +1519,7 @@ static int wm_adsp_create_control(struct wm_adsp *dsp,
1519 ctl_work = kzalloc(sizeof(*ctl_work), GFP_KERNEL); 1519 ctl_work = kzalloc(sizeof(*ctl_work), GFP_KERNEL);
1520 if (!ctl_work) { 1520 if (!ctl_work) {
1521 ret = -ENOMEM; 1521 ret = -ENOMEM;
1522 goto err_ctl_cache; 1522 goto err_list_del;
1523 } 1523 }
1524 1524
1525 ctl_work->dsp = dsp; 1525 ctl_work->dsp = dsp;
@@ -1529,7 +1529,8 @@ static int wm_adsp_create_control(struct wm_adsp *dsp,
1529 1529
1530 return 0; 1530 return 0;
1531 1531
1532err_ctl_cache: 1532err_list_del:
1533 list_del(&ctl->list);
1533 kfree(ctl->cache); 1534 kfree(ctl->cache);
1534err_ctl_subname: 1535err_ctl_subname:
1535 kfree(ctl->subname); 1536 kfree(ctl->subname);