patch-2.3.13 linux/drivers/usb/printer.c

Next file: linux/drivers/usb/uhci-debug.c
Previous file: linux/drivers/usb/ohci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/drivers/usb/printer.c linux/drivers/usb/printer.c
@@ -241,7 +241,7 @@
 			return -EIO;
 
 		if (this_read) {
-			if (copy_to_user(buffer, p->obuf, this_read))
+			if (copy_to_user(buffer, buf, this_read))
 				return -EFAULT;
 			count -= this_read;
 			read_count += this_read;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)