netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb()
@ 2009-06-04 15:50 Paulius Zaleckas
  2009-06-08  7:23 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Paulius Zaleckas @ 2009-06-04 15:50 UTC (permalink / raw)
  To: j.dumon; +Cc: netdev

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
---

 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. */


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb()
  2009-06-04 15:50 [PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb() Paulius Zaleckas
@ 2009-06-08  7:23 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-06-08  7:23 UTC (permalink / raw)
  To: paulius.zaleckas; +Cc: j.dumon, netdev

From: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Date: Thu, 04 Jun 2009 18:50:29 +0300

> Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-08  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-04 15:50 [PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb() Paulius Zaleckas
2009-06-08  7:23 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).