]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/scsi/qla2xxx/qla_isr.c
treewide: kzalloc() -> kcalloc()
[mirror_ubuntu-hirsute-kernel.git] / drivers / scsi / qla2xxx / qla_isr.c
index a3dc83f9444dade9e3a549756dddd23b0d4d852a..d14d3911516d5ff2051436b72dbc293b5da52691 100644 (file)
@@ -3434,8 +3434,9 @@ qla24xx_enable_msix(struct qla_hw_data *ha, struct rsp_que *rsp)
                            "Adjusted Max no of queues pairs: %d.\n", ha->max_qpairs);
                }
        }
-       ha->msix_entries = kzalloc(sizeof(struct qla_msix_entry) *
-                               ha->msix_count, GFP_KERNEL);
+       ha->msix_entries = kcalloc(ha->msix_count,
+                                  sizeof(struct qla_msix_entry),
+                                  GFP_KERNEL);
        if (!ha->msix_entries) {
                ql_log(ql_log_fatal, vha, 0x00c8,
                    "Failed to allocate memory for ha->msix_entries.\n");