diff options
author | David S. Miller <davem@davemloft.net> | 2012-02-07 15:28:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-07 15:28:15 -0500 |
commit | 7280f5ae0d71f2259a42d1f7603480809e4867fb (patch) | |
tree | 7b0a42e0436365a958f5bb8346c8f34c56d63f0e /drivers/net/ethernet/natsemi | |
parent | af2ce213f6e6b28497c5c932f43b94026b5a0363 (diff) |
sonice: Fix build due to botched netdev_alloc_skb() conversion.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/natsemi')
-rw-r--r-- | drivers/net/ethernet/natsemi/sonic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/natsemi/sonic.c b/drivers/net/ethernet/natsemi/sonic.c index 0452e2968d27..46795e403467 100644 --- a/drivers/net/ethernet/natsemi/sonic.c +++ b/drivers/net/ethernet/natsemi/sonic.c | |||
@@ -422,7 +422,7 @@ static void sonic_rx(struct net_device *dev) | |||
422 | status = sonic_rda_get(dev, entry, SONIC_RD_STATUS); | 422 | status = sonic_rda_get(dev, entry, SONIC_RD_STATUS); |
423 | if (status & SONIC_RCR_PRX) { | 423 | if (status & SONIC_RCR_PRX) { |
424 | /* Malloc up new buffer. */ | 424 | /* Malloc up new buffer. */ |
425 | new_skb = netdev_alloc_skb(SONIC_RBSIZE + 2); | 425 | new_skb = netdev_alloc_skb(dev, SONIC_RBSIZE + 2); |
426 | if (new_skb == NULL) { | 426 | if (new_skb == NULL) { |
427 | printk(KERN_ERR "%s: Memory squeeze, dropping packet.\n", dev->name); | 427 | printk(KERN_ERR "%s: Memory squeeze, dropping packet.\n", dev->name); |
428 | lp->stats.rx_dropped++; | 428 | lp->stats.rx_dropped++; |