Commit d984abc9 authored by Pete Zaitcev's avatar Pete Zaitcev Committed by Greg Kroah-Hartman
Browse files

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: default avatarPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9a030958
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}