Commit 09a12dff authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] USB: return to old timeout handling

it seems that I've broken usblp. This reverts to the old
behaviour. Please apply.

  - revert to old timeout handling
parent 585f6f50
...@@ -626,12 +626,6 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t ...@@ -626,12 +626,6 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t
} }
} }
remove_wait_queue(&usblp->wait, &wait); remove_wait_queue(&usblp->wait, &wait);
if (!timeout) {
/* we timed out and need to bail out cleanly */
usb_unlink_urb(usblp->writeurb);
return writecount ? writecount : -EIO;
}
} }
down (&usblp->sem); down (&usblp->sem);
......
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