sonice: Fix build due to botched netdev_alloc_skb() conversion.
authorDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2012 20:28:15 +0000 (15:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2012 20:28:15 +0000 (15:28 -0500)
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/sonic.c

index 0452e2968d27f3b104b7bfdb6f702e10707c6d9e..46795e4034675c381bef7de9b6b01249a1514e50 100644 (file)
@@ -422,7 +422,7 @@ static void sonic_rx(struct net_device *dev)
                status = sonic_rda_get(dev, entry, SONIC_RD_STATUS);
                if (status & SONIC_RCR_PRX) {
                        /* 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) {
                                printk(KERN_ERR "%s: Memory squeeze, dropping packet.\n", dev->name);
                                lp->stats.rx_dropped++;