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>
usblp->wcomplete = 0;
err = usb_submit_urb(usblp->writeurb);
if (err) {
+ usblp->wcomplete = 1;
if (err != -ENOMEM)
count = -EIO;
else