phba->hba_debugfs_root,
                                 phba, &lpfc_debugfs_op_slow_ring_trc);
                if (!phba->slow_ring_trc) {
-                       phba->slow_ring_trc = kmalloc(
-                               (sizeof(struct lpfc_debugfs_trc) *
-                               lpfc_debugfs_max_slow_ring_trc),
+                       phba->slow_ring_trc = kcalloc(
+                               lpfc_debugfs_max_slow_ring_trc,
+                               sizeof(struct lpfc_debugfs_trc),
                                GFP_KERNEL);
                        if (!phba->slow_ring_trc) {
                                lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
                                goto debug_failed;
                        }
                        atomic_set(&phba->slow_ring_trc_cnt, 0);
-                       memset(phba->slow_ring_trc, 0,
-                               (sizeof(struct lpfc_debugfs_trc) *
-                               lpfc_debugfs_max_slow_ring_trc));
                }
 
                snprintf(name, sizeof(name), "nvmeio_trc");