treewide: Use array_size() in vzalloc()
[linux-2.6-microblaze.git] / drivers / net / ethernet / qlogic / qlcnic / qlcnic_83xx_hw.c
index 97c146e..569d54e 100644 (file)
@@ -386,8 +386,9 @@ int qlcnic_83xx_setup_intr(struct qlcnic_adapter *adapter)
        }
 
        /* setup interrupt mapping table for fw */
-       ahw->intr_tbl = vzalloc(num_msix *
-                               sizeof(struct qlcnic_intrpt_config));
+       ahw->intr_tbl =
+               vzalloc(array_size(num_msix,
+                                  sizeof(struct qlcnic_intrpt_config)));
        if (!ahw->intr_tbl)
                return -ENOMEM;