diff options
Diffstat (limited to 'drivers/net/ethernet/marvell/mv643xx_eth.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mv643xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 510d50603a02..6495bea56ec8 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c | |||
@@ -1763,7 +1763,7 @@ static int rxq_init(struct mv643xx_eth_private *mp, int index) | |||
1763 | memset(rxq->rx_desc_area, 0, size); | 1763 | memset(rxq->rx_desc_area, 0, size); |
1764 | 1764 | ||
1765 | rxq->rx_desc_area_size = size; | 1765 | rxq->rx_desc_area_size = size; |
1766 | rxq->rx_skb = kmalloc_array(rxq->rx_ring_size, sizeof(*rxq->rx_skb), | 1766 | rxq->rx_skb = kcalloc(rxq->rx_ring_size, sizeof(*rxq->rx_skb), |
1767 | GFP_KERNEL); | 1767 | GFP_KERNEL); |
1768 | if (rxq->rx_skb == NULL) | 1768 | if (rxq->rx_skb == NULL) |
1769 | goto out_free; | 1769 | goto out_free; |