Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299436
b: refs/heads/master
c: 523fc5c
h: refs/heads/master
v: v3
  • Loading branch information
Tomoki Sekiyama authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 6a43afe commit 45986cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4a728d09a96d6a83d9c3f39035b1aa7726892ea
refs/heads/master: 523fc5c14f6cad283e5a266eba0e343aed6e73d5
8 changes: 2 additions & 6 deletions trunk/drivers/usb/misc/yurex.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ static void yurex_delete(struct kref *kref)
usb_put_dev(dev->udev);
if (dev->cntl_urb) {
usb_kill_urb(dev->cntl_urb);
if (dev->cntl_req)
usb_free_coherent(dev->udev, YUREX_BUF_SIZE,
dev->cntl_req, dev->cntl_urb->setup_dma);
kfree(dev->cntl_req);
if (dev->cntl_buffer)
usb_free_coherent(dev->udev, YUREX_BUF_SIZE,
dev->cntl_buffer, dev->cntl_urb->transfer_dma);
Expand Down Expand Up @@ -234,9 +232,7 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_
}

/* allocate buffer for control req */
dev->cntl_req = usb_alloc_coherent(dev->udev, YUREX_BUF_SIZE,
GFP_KERNEL,
&dev->cntl_urb->setup_dma);
dev->cntl_req = kmalloc(YUREX_BUF_SIZE, GFP_KERNEL);
if (!dev->cntl_req) {
err("Could not allocate cntl_req");
goto error;
Expand Down

0 comments on commit 45986cb

Please sign in to comment.