diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-23 05:07:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-23 05:07:49 -0400 |
commit | b3e3b302cf6dc8d60b67f0e84d1fa5648889c038 (patch) | |
tree | 3f6150291664b4c62e328f6b1dcff79b54db612a /drivers/usb/core/devio.c | |
parent | a6bc3262c561780d2a6587aa3d5715b1e7d8fa13 (diff) | |
parent | 59fcbddaff6f862cc1584b488866d9c4a5579085 (diff) |
Merge branches 'irq/sparseirq' and 'linus' into irq/core
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r-- | drivers/usb/core/devio.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 7513bb083c1..6585f527e38 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -359,11 +359,6 @@ static void destroy_async(struct dev_state *ps, struct list_head *list) | |||
359 | spin_lock_irqsave(&ps->lock, flags); | 359 | spin_lock_irqsave(&ps->lock, flags); |
360 | } | 360 | } |
361 | spin_unlock_irqrestore(&ps->lock, flags); | 361 | spin_unlock_irqrestore(&ps->lock, flags); |
362 | as = async_getcompleted(ps); | ||
363 | while (as) { | ||
364 | free_async(as); | ||
365 | as = async_getcompleted(ps); | ||
366 | } | ||
367 | } | 362 | } |
368 | 363 | ||
369 | static void destroy_async_on_interface(struct dev_state *ps, | 364 | static void destroy_async_on_interface(struct dev_state *ps, |
@@ -643,6 +638,7 @@ static int usbdev_release(struct inode *inode, struct file *file) | |||
643 | struct dev_state *ps = file->private_data; | 638 | struct dev_state *ps = file->private_data; |
644 | struct usb_device *dev = ps->dev; | 639 | struct usb_device *dev = ps->dev; |
645 | unsigned int ifnum; | 640 | unsigned int ifnum; |
641 | struct async *as; | ||
646 | 642 | ||
647 | usb_lock_device(dev); | 643 | usb_lock_device(dev); |
648 | 644 | ||
@@ -661,6 +657,12 @@ static int usbdev_release(struct inode *inode, struct file *file) | |||
661 | usb_unlock_device(dev); | 657 | usb_unlock_device(dev); |
662 | usb_put_dev(dev); | 658 | usb_put_dev(dev); |
663 | put_pid(ps->disc_pid); | 659 | put_pid(ps->disc_pid); |
660 | |||
661 | as = async_getcompleted(ps); | ||
662 | while (as) { | ||
663 | free_async(as); | ||
664 | as = async_getcompleted(ps); | ||
665 | } | ||
664 | kfree(ps); | 666 | kfree(ps); |
665 | return 0; | 667 | return 0; |
666 | } | 668 | } |