diff options
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 255cad43a972..229c12349803 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -3055,7 +3055,7 @@ int snd_soc_dapm_new_widgets(struct snd_soc_card *card) | |||
3055 | continue; | 3055 | continue; |
3056 | 3056 | ||
3057 | if (w->num_kcontrols) { | 3057 | if (w->num_kcontrols) { |
3058 | w->kcontrols = kzalloc(w->num_kcontrols * | 3058 | w->kcontrols = kcalloc(w->num_kcontrols, |
3059 | sizeof(struct snd_kcontrol *), | 3059 | sizeof(struct snd_kcontrol *), |
3060 | GFP_KERNEL); | 3060 | GFP_KERNEL); |
3061 | if (!w->kcontrols) { | 3061 | if (!w->kcontrols) { |