patch-2.1.2 linux/drivers/char/vga.c

Next file: linux/drivers/net/at1700.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.1/linux/drivers/char/vga.c linux/drivers/char/vga.c
@@ -409,10 +409,10 @@
 		arg += cmapsz;
 		if (set)
 		  for (i=0; i<cmapsz ; i++)
-		    *(charmap+i) = get_user(arg+i);
+		    scr_writeb(get_user(arg+i), charmap+i);
 		else
 		  for (i=0; i<cmapsz ; i++)
-		    put_user(*(charmap+i), arg+i);
+		    put_user(scr_readb(charmap+i), arg+i);
 	      }
 	  }
 	

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