Patchwork [RFC,7/9] irda: Stack RX path callers should use irda_dev_alloc_skb

login
register
mail settings
Submitter Samuel Ortiz
Date Dec. 15, 2008, 1:57 a.m.
Message ID <20081215015902.740698225@sortiz.org>
Download mbox | patch
Permalink /patch/13970/
State RFC
Delegated to: David Miller
Headers show

Comments

Samuel Ortiz - Dec. 15, 2008, 1:57 a.m.
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
---
 net/irda/irttp.c   |    2 +-
 net/irda/wrapper.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/net/irda/irttp.c b/net/irda/irttp.c
index 4b913de..6f28186 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -241,7 +241,7 @@  static struct sk_buff *irttp_reassemble_skb(struct tsap_cb *self)
 	IRDA_DEBUG(2, "%s(), self->rx_sdu_size=%d\n", __func__,
 		   self->rx_sdu_size);
 
-	skb = dev_alloc_skb(TTP_HEADER + self->rx_sdu_size);
+	skb = irda_dev_alloc_skb(TTP_HEADER + self->rx_sdu_size);
 	if (!skb)
 		return NULL;
 
diff --git a/net/irda/wrapper.c b/net/irda/wrapper.c
index b13cb3b..e1ab6d1 100644
--- a/net/irda/wrapper.c
+++ b/net/irda/wrapper.c
@@ -225,7 +225,8 @@  async_bump(struct net_device *dev,
 		  (rx_buff->len < IRDA_RX_COPY_THRESHOLD));
 
 	/* Allocate a new skb */
-	newskb = dev_alloc_skb(docopy ? rx_buff->len + 1 : rx_buff->truesize);
+	newskb = irda_dev_alloc_skb(docopy ?
+				    rx_buff->len + 1 : rx_buff->truesize);
 	if (!newskb)  {
 		stats->rx_dropped++;
 		/* We could deliver the current skb if doing ZeroCopy Rx,