mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
9a03095831
commit
d984abc97e
@ -1018,8 +1018,8 @@ done:
|
|||||||
atomic_dec (&urb->use_count);
|
atomic_dec (&urb->use_count);
|
||||||
if (urb->reject)
|
if (urb->reject)
|
||||||
wake_up (&usb_kill_urb_queue);
|
wake_up (&usb_kill_urb_queue);
|
||||||
usb_put_urb (urb);
|
|
||||||
usbmon_urb_submit_error(&hcd->self, urb, status);
|
usbmon_urb_submit_error(&hcd->self, urb, status);
|
||||||
|
usb_put_urb (urb);
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user