patch-2.1.6 linux/drivers/isdn/teles/llglue.c

Next file: linux/drivers/isdn/teles/mod.c
Previous file: linux/drivers/isdn/teles/config.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.5/linux/drivers/isdn/teles/llglue.c linux/drivers/isdn/teles/llglue.c
@@ -46,9 +46,10 @@
 	byte           *p;
 
 	for (p = buf, count = 0; count < len; p++, count++) {
-		if (user)
-			put_fs_byte(*teles_status_read++, p);
-		else
+		if (user) {
+			put_user(*teles_status_read, p);
+			teles_status_read++; 
+		} else
 			*p++ = *teles_status_read++;
 		if (teles_status_read > teles_status_end)
 			teles_status_read = teles_status_buf;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov