diff options
Diffstat (limited to 'drivers/message')
| -rw-r--r-- | drivers/message/fusion/mptlan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptlan.c b/drivers/message/fusion/mptlan.c index 4cbed4d06aa7..ebc00d47abf5 100644 --- a/drivers/message/fusion/mptlan.c +++ b/drivers/message/fusion/mptlan.c | |||
| @@ -394,7 +394,8 @@ mpt_lan_open(struct net_device *dev) | |||
| 394 | "a moment.\n"); | 394 | "a moment.\n"); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | priv->mpt_txfidx = kmalloc(priv->tx_max_out * sizeof(int), GFP_KERNEL); | 397 | priv->mpt_txfidx = kmalloc_array(priv->tx_max_out, sizeof(int), |
| 398 | GFP_KERNEL); | ||
| 398 | if (priv->mpt_txfidx == NULL) | 399 | if (priv->mpt_txfidx == NULL) |
| 399 | goto out; | 400 | goto out; |
| 400 | priv->mpt_txfidx_tail = -1; | 401 | priv->mpt_txfidx_tail = -1; |
| @@ -408,8 +409,8 @@ mpt_lan_open(struct net_device *dev) | |||
| 408 | 409 | ||
| 409 | dlprintk((KERN_INFO MYNAM "@lo: Finished initializing SendCtl\n")); | 410 | dlprintk((KERN_INFO MYNAM "@lo: Finished initializing SendCtl\n")); |
| 410 | 411 | ||
| 411 | priv->mpt_rxfidx = kmalloc(priv->max_buckets_out * sizeof(int), | 412 | priv->mpt_rxfidx = kmalloc_array(priv->max_buckets_out, sizeof(int), |
| 412 | GFP_KERNEL); | 413 | GFP_KERNEL); |
| 413 | if (priv->mpt_rxfidx == NULL) | 414 | if (priv->mpt_rxfidx == NULL) |
| 414 | goto out_SendCtl; | 415 | goto out_SendCtl; |
| 415 | priv->mpt_rxfidx_tail = -1; | 416 | priv->mpt_rxfidx_tail = -1; |
