Message ID | 20090604155029.6660.14235.stgit@Programuotojas |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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. */
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> --- drivers/net/usb/hso.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html