mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9034f77bad
commit
e4e90b210d
@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev)
|
||||
dev->rx_buff.truesize = IRDA_SKB_MAX_MTU;
|
||||
|
||||
/* 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)
|
||||
return -ENOMEM;
|
||||
skb_reserve(dev->rx_buff.skb, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user