diff options
Diffstat (limited to 'drivers/net/ethernet/mipsnet.c')
-rw-r--r-- | drivers/net/ethernet/mipsnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mipsnet.c b/drivers/net/ethernet/mipsnet.c index d05b0c9e1e9c..dbc666a3d523 100644 --- a/drivers/net/ethernet/mipsnet.c +++ b/drivers/net/ethernet/mipsnet.c | |||
@@ -152,7 +152,7 @@ static inline ssize_t mipsnet_get_fromdev(struct net_device *dev, size_t len) | |||
152 | if (!len) | 152 | if (!len) |
153 | return len; | 153 | return len; |
154 | 154 | ||
155 | skb = dev_alloc_skb(len + NET_IP_ALIGN); | 155 | skb = netdev_alloc_skb(dev, len + NET_IP_ALIGN); |
156 | if (!skb) { | 156 | if (!skb) { |
157 | dev->stats.rx_dropped++; | 157 | dev->stats.rx_dropped++; |
158 | return -ENOMEM; | 158 | return -ENOMEM; |