Commit 7280f5ae authored by David S. Miller's avatar David S. Miller

sonice: Fix build due to botched netdev_alloc_skb() conversion.

Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent af2ce213
...@@ -422,7 +422,7 @@ static void sonic_rx(struct net_device *dev) ...@@ -422,7 +422,7 @@ static void sonic_rx(struct net_device *dev)
status = sonic_rda_get(dev, entry, SONIC_RD_STATUS); status = sonic_rda_get(dev, entry, SONIC_RD_STATUS);
if (status & SONIC_RCR_PRX) { if (status & SONIC_RCR_PRX) {
/* Malloc up new buffer. */ /* Malloc up new buffer. */
new_skb = netdev_alloc_skb(SONIC_RBSIZE + 2); new_skb = netdev_alloc_skb(dev, SONIC_RBSIZE + 2);
if (new_skb == NULL) { if (new_skb == NULL) {
printk(KERN_ERR "%s: Memory squeeze, dropping packet.\n", dev->name); printk(KERN_ERR "%s: Memory squeeze, dropping packet.\n", dev->name);
lp->stats.rx_dropped++; lp->stats.rx_dropped++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment