diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2007-05-11 22:00:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-05-22 23:45:49 -0700 |
commit | d984abc97e400d68a09729b80060fe0ec591eb16 (patch) | |
tree | cab2242ac0ccbddba0565a3266ddf7dad0ec87c9 /drivers/usb | |
parent | 9a03095831e839959175379bfdd88e6e1a93b9ea (diff) | |
download | linux-d984abc97e400d68a09729b80060fe0ec591eb16.tar.gz linux-d984abc97e400d68a09729b80060fe0ec591eb16.tar.bz2 linux-d984abc97e400d68a09729b80060fe0ec591eb16.zip |
USB: Deref URB after usbmon is done with it
I haven't personally run across an oops because of this, but I feel safer
with this fix in place.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 9ad2970a095d..e277258df382 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -1018,8 +1018,8 @@ done: atomic_dec (&urb->use_count); if (urb->reject) wake_up (&usb_kill_urb_queue); - usb_put_urb (urb); usbmon_urb_submit_error(&hcd->self, urb, status); + usb_put_urb (urb); } return status; } |