usbnet.c (57b8628bb0ac4e47c806e45c5bbd89282e93869b) | usbnet.c (720f3d7cb19eb27f85f72836c8f8004ccb257f39) |
---|---|
1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 196 unchanged lines hidden (view full) --- 205 if (buf) { 206 dev->interrupt = usb_alloc_urb (0, GFP_KERNEL); 207 if (!dev->interrupt) { 208 kfree (buf); 209 return -ENOMEM; 210 } else { 211 usb_fill_int_urb(dev->interrupt, dev->udev, pipe, 212 buf, maxp, intr_complete, dev, period); | 1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 196 unchanged lines hidden (view full) --- 205 if (buf) { 206 dev->interrupt = usb_alloc_urb (0, GFP_KERNEL); 207 if (!dev->interrupt) { 208 kfree (buf); 209 return -ENOMEM; 210 } else { 211 usb_fill_int_urb(dev->interrupt, dev->udev, pipe, 212 buf, maxp, intr_complete, dev, period); |
213 dev->interrupt->transfer_flags |= URB_FREE_BUFFER; |
|
213 dev_dbg(&intf->dev, 214 "status ep%din, %d bytes period %d\n", 215 usb_pipeendpoint(pipe), maxp, period); 216 } 217 } 218 return 0; 219} 220 --- 1356 unchanged lines hidden --- | 214 dev_dbg(&intf->dev, 215 "status ep%din, %d bytes period %d\n", 216 usb_pipeendpoint(pipe), maxp, period); 217 } 218 } 219 return 0; 220} 221 --- 1356 unchanged lines hidden --- |