2000-10-27 21:00:52

by Dunlap, Randy

[permalink] [raw]
Subject: Re: USB Printer, in 2.4.0-test9

--- linux/drivers/usb/printer.c.org Thu Oct 26 17:36:50 2000
+++ linux/drivers/usb/printer.c Thu Oct 26 17:09:53 2000
@@ -190,6 +190,8 @@
retval = retval > 1 ? -EIO : -ENOSPC;
goto out;
}
+#else
+ retval = 0;
#endif

usblp->used = 1;
@@ -383,6 +385,7 @@
return -EFAULT;

if ((usblp->readcount += count) == usblp->readurb.actual_length) {
+ usblp->readcount = 0;
usblp->readurb.dev = usblp->dev;
usb_submit_urb(&usblp->readurb);
}


Attachments:
printer_c_patch (458.00 B)