aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/sir_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/irda/sir_dev.c')
-rw-r--r--drivers/net/irda/sir_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c
index 5b5862499def..c23d211758ae 100644
--- a/drivers/net/irda/sir_dev.c
+++ b/drivers/net/irda/sir_dev.c
@@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev)
753 dev->rx_buff.truesize = IRDA_SKB_MAX_MTU; 753 dev->rx_buff.truesize = IRDA_SKB_MAX_MTU;
754 754
755 /* Bootstrap ZeroCopy Rx */ 755 /* Bootstrap ZeroCopy Rx */
756 dev->rx_buff.skb = __dev_alloc_skb(dev->rx_buff.truesize, GFP_KERNEL); 756 dev->rx_buff.skb = __netdev_alloc_skb(dev->netdev, dev->rx_buff.truesize,
757 GFP_KERNEL);
757 if (dev->rx_buff.skb == NULL) 758 if (dev->rx_buff.skb == NULL)
758 return -ENOMEM; 759 return -ENOMEM;
759 skb_reserve(dev->rx_buff.skb, 1); 760 skb_reserve(dev->rx_buff.skb, 1);