|
@@ -2379,7 +2379,7 @@ static int __devinit enic_probe(struct pci_dev *pdev,
|
|
|
|
|
|
#endif
|
|
#endif
|
|
/* Allocate structure for port profiles */
|
|
/* Allocate structure for port profiles */
|
|
- enic->pp = kzalloc(num_pps * sizeof(*enic->pp), GFP_KERNEL);
|
|
|
|
|
|
+ enic->pp = kcalloc(num_pps, sizeof(*enic->pp), GFP_KERNEL);
|
|
if (!enic->pp) {
|
|
if (!enic->pp) {
|
|
pr_err("port profile alloc failed, aborting\n");
|
|
pr_err("port profile alloc failed, aborting\n");
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|