Changeset 19243 for src/linux/universal/linux-3.2/drivers/usb/misc/yurex.c
- Timestamp:
- 05/12/12 20:04:55 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/linux/universal/linux-3.2/drivers/usb/misc/yurex.c
r18171 r19243 100 100 if (dev->cntl_urb) { 101 101 usb_kill_urb(dev->cntl_urb); 102 if (dev->cntl_req) 103 usb_free_coherent(dev->udev, YUREX_BUF_SIZE, 104 dev->cntl_req, dev->cntl_urb->setup_dma); 102 kfree(dev->cntl_req); 105 103 if (dev->cntl_buffer) 106 104 usb_free_coherent(dev->udev, YUREX_BUF_SIZE, … … 235 233 236 234 /* allocate buffer for control req */ 237 dev->cntl_req = usb_alloc_coherent(dev->udev, YUREX_BUF_SIZE, 238 GFP_KERNEL, 239 &dev->cntl_urb->setup_dma); 235 dev->cntl_req = kmalloc(YUREX_BUF_SIZE, GFP_KERNEL); 240 236 if (!dev->cntl_req) { 241 237 err("Could not allocate cntl_req"); … … 287 283 dev->int_buffer, YUREX_BUF_SIZE, yurex_interrupt, 288 284 dev, 1); 289 dev-> cntl_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;285 dev->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; 290 286 if (usb_submit_urb(dev->urb, GFP_KERNEL)) { 291 287 retval = -EIO;
Note: See TracChangeset
for help on using the changeset viewer.
