patch-2.1.12 linux/arch/m68k/amiga/cyberfb.c

Next file: linux/arch/m68k/amiga/ksyms.c
Previous file: linux/arch/m68k/amiga/config.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.11/linux/arch/m68k/amiga/cyberfb.c linux/arch/m68k/amiga/cyberfb.c
@@ -29,7 +29,7 @@
 #include <linux/tty.h>
 #include <linux/malloc.h>
 #include <linux/delay.h>
-#include <asm/segment.h>
+#include <asm/uaccess.h>
 #include <asm/system.h>
 #include <asm/irq.h>
 #include <asm/zorro.h>
@@ -815,11 +815,11 @@
          if (transp)
             *transp = htransp;
       } else {
-         put_fs_word(hred, red);
-         put_fs_word(hgreen, green);
-         put_fs_word(hblue, blue);
+         put_user(hred, red);
+         put_user(hgreen, green);
+         put_user(hblue, blue);
          if (transp)
-            put_fs_word(htransp, transp);
+            put_user(htransp, transp);
       }
       red++;
       green++;
@@ -853,10 +853,13 @@
          hblue = *blue;
          htransp = transp ? *transp : 0;
       } else {
-         hred = get_fs_word(red);
-         hgreen = get_fs_word(green);
-         hblue = get_fs_word(blue);
-         htransp = transp ? get_fs_word(transp) : 0;
+         get_user(hred, red);
+         get_user(hgreen, green);
+         get_user(hblue, blue);
+	 if (transp)
+		 get_user(htransp, transp);
+	 else
+		 htransp = 0;
       }
       hred = CNVT_TOHW(hred, var->red.length);
       hgreen = CNVT_TOHW(hgreen, var->green.length);

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