• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revisiond0e38a4cc5681dad154dd00c63e0b44aa7807d34 (tree)
Zeit2006-12-05 17:25:40
AutorOliver Neukum <oliver@neuk...>
CommiterWilly Tarreau

Log Message

[PATCH] fix for transient error in usb printer driver

Hi,

this is a port of a fix for 2.6 which handles transient errors while
writing to the printer. The buffer has to be marked free again if
urb submission fails, as the completion handler can't do it.
Please apply to the 2.4 tree.

Regards
Oliver

Signed-off-by: Oliver Neukum <oliver@neukum.name>

Ändern Zusammenfassung

Diff

--- a/drivers/usb/printer.c
+++ b/drivers/usb/printer.c
@@ -692,6 +692,7 @@ static ssize_t usblp_write(struct file *file, const char *buffer, size_t count,
692692 usblp->wcomplete = 0;
693693 err = usb_submit_urb(usblp->writeurb);
694694 if (err) {
695+ usblp->wcomplete = 1;
695696 if (err != -ENOMEM)
696697 count = -EIO;
697698 else
Show on old repository browser