projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9034f77
)
irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
author
David S. Miller
<davem@davemloft.net>
Tue, 10 Feb 2009 09:54:22 +0000
(
01:54
-0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 10 Feb 2009 09:56:49 +0000
(
01:56
-0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/sir_dev.c
patch
|
blob
|
history
diff --git
a/drivers/net/irda/sir_dev.c
b/drivers/net/irda/sir_dev.c
index 5b5862499def5e3163738aaa3b7d2b5f01382e6b..c23d211758ae9480ae34a3e2a72d96cffa337a62 100644
(file)
--- 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)
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);