aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atlx/atl1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/atlx/atl1.c')
-rw-r--r--drivers/net/atlx/atl1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 3c798ae5c343..3e22e7817bc3 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -1859,7 +1859,8 @@ static u16 atl1_alloc_rx_buffers(struct atl1_adapter *adapter)
1859 1859
1860 rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use); 1860 rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);
1861 1861
1862 skb = dev_alloc_skb(adapter->rx_buffer_len + NET_IP_ALIGN); 1862 skb = netdev_alloc_skb(adapter->netdev,
1863 adapter->rx_buffer_len + NET_IP_ALIGN);
1863 if (unlikely(!skb)) { 1864 if (unlikely(!skb)) {
1864 /* Better luck next round */ 1865 /* Better luck next round */
1865 adapter->net_stats.rx_dropped++; 1866 adapter->net_stats.rx_dropped++;