提交 e4e90b21 编写于 作者: D David S. Miller

irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb().

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9034f77b
...@@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev) ...@@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev)
dev->rx_buff.truesize = IRDA_SKB_MAX_MTU; dev->rx_buff.truesize = IRDA_SKB_MAX_MTU;
/* Bootstrap ZeroCopy Rx */ /* Bootstrap ZeroCopy Rx */
dev->rx_buff.skb = __dev_alloc_skb(dev->rx_buff.truesize, GFP_KERNEL); dev->rx_buff.skb = __netdev_alloc_skb(dev->netdev, dev->rx_buff.truesize,
GFP_KERNEL);
if (dev->rx_buff.skb == NULL) if (dev->rx_buff.skb == NULL)
return -ENOMEM; return -ENOMEM;
skb_reserve(dev->rx_buff.skb, 1); skb_reserve(dev->rx_buff.skb, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册