|
@@ -134,7 +134,7 @@ static int temac_dma_bd_init(struct net_device *ndev)
|
|
struct sk_buff *skb;
|
|
struct sk_buff *skb;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
- lp->rx_skb = kzalloc(sizeof(struct sk_buff)*RX_BD_NUM, GFP_KERNEL);
|
|
|
|
|
|
+ lp->rx_skb = kzalloc(sizeof(*lp->rx_skb) * RX_BD_NUM, GFP_KERNEL);
|
|
/* allocate the tx and rx ring buffer descriptors. */
|
|
/* allocate the tx and rx ring buffer descriptors. */
|
|
/* returns a virtual addres and a physical address. */
|
|
/* returns a virtual addres and a physical address. */
|
|
lp->tx_bd_v = dma_alloc_coherent(ndev->dev.parent,
|
|
lp->tx_bd_v = dma_alloc_coherent(ndev->dev.parent,
|