From patchwork Thu Jun 4 15:50:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulius Zaleckas X-Patchwork-Id: 28109 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 0185DB6F44 for ; Fri, 5 Jun 2009 01:50:39 +1000 (EST) Received: by ozlabs.org (Postfix) id E2DC7DDDE7; Fri, 5 Jun 2009 01:50:38 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 013C9DDDE6 for ; Fri, 5 Jun 2009 01:50:38 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754830AbZFDPua (ORCPT ); Thu, 4 Jun 2009 11:50:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754753AbZFDPua (ORCPT ); Thu, 4 Jun 2009 11:50:30 -0400 Received: from 81-7-68-229.static.zebra.lt ([81.7.68.229]:34269 "EHLO teltonika.lt" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754094AbZFDPu3 (ORCPT ); Thu, 4 Jun 2009 11:50:29 -0400 Received: (qmail 2667 invoked by uid 109); 4 Jun 2009 15:53:52 -0000 Received: from 217.147.39.138 by mailserver (envelope-from , uid 112) with qmail-scanner-1.25st (spamassassin: 3.1.7-deb. perlscan: 1.25st. Clear:RC:1(217.147.39.138):. Processed in 0.029831 secs); 04 Jun 2009 15:53:52 -0000 Received: from unknown (HELO [127.0.0.1]) (paulius.zaleckas@[217.147.39.138]) (envelope-sender ) by teltonika.lt (qmail-ldap-1.03) with SMTP for ; 4 Jun 2009 15:53:52 -0000 From: Paulius Zaleckas Subject: [PATCH] hso: convert dev_alloc_skb() to netdev_alloc_skb() To: j.dumon@option.com Cc: netdev@vger.kernel.org Date: Thu, 04 Jun 2009 18:50:29 +0300 Message-ID: <20090604155029.6660.14235.stgit@Programuotojas> User-Agent: StGIT/0.14.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Paulius Zaleckas --- 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 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. */