Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143614
b: refs/heads/master
c: 5936ac7
h: refs/heads/master
v: v3
  • Loading branch information
David Vrabel authored and Greg Kroah-Hartman committed Apr 17, 2009
1 parent 9e43f7a commit 31974a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8db324ec4322a15cf8819b8a7f0eff5aa98b2ff6
refs/heads/master: 5936ac7f93965931c508e1928d142076998ce65d
2 changes: 2 additions & 0 deletions trunk/drivers/usb/wusbcore/devconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ static void wusbhc_devconnect_acked_work(struct work_struct *work)
mutex_lock(&wusbhc->mutex);
wusbhc_devconnect_acked(wusbhc, wusb_dev);
mutex_unlock(&wusbhc->mutex);

wusb_dev_put(wusb_dev);
}

/*
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/usb/wusbcore/wusbhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,15 @@ void wusbhc_giveback_urb(struct wusbhc *wusbhc, struct urb *urb, int status)
{
struct wusb_dev *wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, urb->dev);

if (status == 0) {
if (status == 0 && wusb_dev) {
wusb_dev->entry_ts = jiffies;

/* wusbhc_devconnect_acked() can't be called from from
/* wusbhc_devconnect_acked() can't be called from
atomic context so defer it to a work queue. */
if (!list_empty(&wusb_dev->cack_node))
queue_work(wusbd, &wusb_dev->devconnect_acked_work);
else
wusb_dev_put(wusb_dev);
}

usb_hcd_giveback_urb(&wusbhc->usb_hcd, urb, status);
Expand Down

0 comments on commit 31974a5

Please sign in to comment.