[PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb()

Subsystems: hso 3g modem driver, networking drivers, the rest, usb networking drivers

STALE6309d

2 messages, 2 authors, 2009-06-08 · open the first message on its own page

[PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb()

From: Paulius Zaleckas <hidden>
Date: 2009-06-04 15:50:29

Signed-off-by: Paulius Zaleckas <redacted>
---

 drivers/net/usb/hso.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 1064dda..61b4d7c 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -899,15 +899,14 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
 					continue;
 				}
 				/* Allocate an sk_buff */
-				odev->skb_rx_buf = dev_alloc_skb(frame_len);
+				odev->skb_rx_buf = netdev_alloc_skb(odev->net,
+								    frame_len);
 				if (!odev->skb_rx_buf) {
 					/* We got no receive buffer. */
 					D1("could not allocate memory");
 					odev->rx_parse_state = WAIT_SYNC;
 					return;
 				}
-				/* Here's where it came from */
-				odev->skb_rx_buf->dev = odev->net;
 
 				/* Copy what we got so far. make room for iphdr
 				 * after tail. */

Re: [PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb()

From: David Miller <davem@davemloft.net>
Date: 2009-06-08 07:23:28

From: Paulius Zaleckas <redacted>
Date: Thu, 04 Jun 2009 18:50:29 +0300
Signed-off-by: Paulius Zaleckas <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help