summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2007-05-12 05:00:29 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2007-05-23 06:45:49 (GMT)
commitd984abc97e400d68a09729b80060fe0ec591eb16 (patch)
treecab2242ac0ccbddba0565a3266ddf7dad0ec87c9 /drivers/usb
parent9a03095831e839959175379bfdd88e6e1a93b9ea (diff)
downloadlinux-fsl-qoriq-d984abc97e400d68a09729b80060fe0ec591eb16.tar.xz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 9ad2970..e277258 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;
}