diff options
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_emaclite.c')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 90e611a6f6c6..77cfe5110318 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c | |||
@@ -613,7 +613,7 @@ static void xemaclite_rx_handler(struct net_device *dev) | |||
613 | u32 len; | 613 | u32 len; |
614 | 614 | ||
615 | len = ETH_FRAME_LEN + ETH_FCS_LEN; | 615 | len = ETH_FRAME_LEN + ETH_FCS_LEN; |
616 | skb = dev_alloc_skb(len + ALIGNMENT); | 616 | skb = netdev_alloc_skb(dev, len + ALIGNMENT); |
617 | if (!skb) { | 617 | if (!skb) { |
618 | /* Couldn't get memory. */ | 618 | /* Couldn't get memory. */ |
619 | dev->stats.rx_dropped++; | 619 | dev->stats.rx_dropped++; |