diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 11feb19e9730f9aa20092fe4142960e461c273c4..65670b2b408cca0d4bffb2931cb7443cd4ba75b1 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -1485,6 +1485,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg,
 	tplg->pos +=
 		(sizeof(struct snd_soc_tplg_dapm_widget) + w->priv.size);
 	if (w->num_kcontrols == 0) {
+		kcontrol_type = 0;
 		template.num_kcontrols = 0;
 		goto widget;
 	}