patch-1.3.4 linux/drivers/char/mem.c

Next file: linux/drivers/char/msbusmouse.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -48,7 +48,7 @@
 		count = high_memory - p;
 	read = 0;
 	while (p < PAGE_SIZE && count > 0) {
-		put_fs_byte(0,buf);
+		put_user(0,buf);
 		buf++;
 		p++;
 		count--;
@@ -126,7 +126,7 @@
 	char * tmp = buf;
 
 	while (count-- > 0 && i < 65536) {
-		put_fs_byte(inb(i),tmp);
+		put_user(inb(i),tmp);
 		i++;
 		tmp++;
 	}
@@ -140,7 +140,7 @@
 	char * tmp = buf;
 
 	while (count-- > 0 && i < 65536) {
-		outb(get_fs_byte(tmp),i);
+		outb(get_user(tmp),i);
 		i++;
 		tmp++;
 	}
@@ -163,7 +163,7 @@
 	int left;
 
 	for (left = count; left > 0; left--) {
-		put_fs_byte(0,buf);
+		put_user(0,buf);
 		buf++;
 	}
 	return count;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this