Commit 5f90abee authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix build error in hci_usb driver due to urb reference count change.

This really needs to get fixed the proper way, by making the urb allocation
dynamic in the driver, instead of the hack it is currently doing...
parent 460e95af
......@@ -342,7 +342,7 @@ static int hci_usb_flush(struct hci_dev *hdev)
static inline void hci_usb_wait_for_urb(struct urb *urb)
{
while (atomic_read(&urb->count) > 1) {
while (atomic_read(&urb->kref.refcount) > 1) {
current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout((5 * HZ + 999) / 1000);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment