Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46657
b: refs/heads/master
c: f38649f
h: refs/heads/master
i:
  46655: a79361f
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent 9d9afe5 commit e3b82fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f23ee1fefdc1f80bd8a3ab04a1c41ab2dec14c9
refs/heads/master: f38649fee955c19f4df9b9e7267f87702712d973
4 changes: 4 additions & 0 deletions trunk/drivers/usb/image/mdc800.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,15 @@ static void mdc800_usb_disconnect (struct usb_interface *intf)

usb_deregister_dev(intf, &mdc800_class);

/* must be under lock to make sure no URB
is submitted after usb_kill_urb() */
mutex_lock(&mdc800->io_lock);
mdc800->state=NOT_CONNECTED;

usb_kill_urb(mdc800->irq_urb);
usb_kill_urb(mdc800->write_urb);
usb_kill_urb(mdc800->download_urb);
mutex_unlock(&mdc800->io_lock);

mdc800->dev = NULL;
usb_set_intfdata(intf, NULL);
Expand Down

0 comments on commit e3b82fb

Please sign in to comment.