diff options
-rw-r--r-- | sound/pci/asihpi/hpicmn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpicmn.c b/sound/pci/asihpi/hpicmn.c index bd47521b24ec..44c7eb4a3f1d 100644 --- a/sound/pci/asihpi/hpicmn.c +++ b/sound/pci/asihpi/hpicmn.c | |||
@@ -631,7 +631,7 @@ struct hpi_control_cache *hpi_alloc_control_cache(const u32 control_count, | |||
631 | if (!p_cache) | 631 | if (!p_cache) |
632 | return NULL; | 632 | return NULL; |
633 | 633 | ||
634 | p_cache->p_info = kzalloc(sizeof(*p_cache->p_info) * control_count, | 634 | p_cache->p_info = kcalloc(control_count, sizeof(*p_cache->p_info), |
635 | GFP_KERNEL); | 635 | GFP_KERNEL); |
636 | if (!p_cache->p_info) { | 636 | if (!p_cache->p_info) { |
637 | kfree(p_cache); | 637 | kfree(p_cache); |