patch-2.1.4 linux/drivers/char/tga.c

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

diff -u --recursive --new-file v2.1.3/linux/drivers/char/tga.c linux/drivers/char/tga.c
@@ -395,9 +395,9 @@
 
 	for (i=0; i<16; i++) {
 		if (set) {
-			default_red[i] = get_user(arg++) ;
-			default_grn[i] = get_user(arg++) ;
-			default_blu[i] = get_user(arg++) ;
+			get_user(default_red[i], arg++) ;
+			get_user(default_grn[i], arg++) ;
+			get_user(default_blu[i], arg++) ;
 		} else {
 			put_user (default_red[i], arg++) ;
 			put_user (default_grn[i], arg++) ;

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