[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1375509413.2201.2.camel@linux-fkkt.site>
Date: Sat, 03 Aug 2013 07:56:53 +0200
From: Oliver Neukum <oneukum@...e.de>
To: Ming Lei <ming.lei@...onical.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sarah Sharp <sarah.a.sharp@...ux.intel.com>,
netdev@...r.kernel.org, linux-usb@...r.kernel.org,
Eric Dumazet <eric.dumazet@...il.com>,
Ben Hutchings <bhutchings@...arflare.com>,
Grant Grundler <grundler@...gle.com>,
Freddy Xin <freddy@...x.com.tw>,
Alan Stern <stern@...land.harvard.edu>
Subject: Re: [PATCH v1 3/4] USBNET: support DMA SG
On Sat, 2013-08-03 at 10:46 +0800, Ming Lei wrote:
> @@ -1268,10 +1298,14 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
> entry = (struct skb_data *) skb->cb;
> entry->urb = urb;
> entry->dev = dev;
> - entry->length = length;
>
> usb_fill_bulk_urb (urb, dev->udev, dev->out,
> skb->data, skb->len, tx_complete, skb);
> + if (dev->can_dma_sg) {
> + if (build_dma_sg(skb, urb) < 0)
> + goto drop;
Where do you free urb->sg?
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists