patch-1.3.4 linux/kernel/signal.c

Next file: linux/kernel/sys.c
Previous file: linux/kernel/printk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/kernel/signal.c linux/kernel/signal.c
@@ -28,7 +28,7 @@
 		error = verify_area(VERIFY_READ, set, sizeof(sigset_t));
 		if (error)
 			return error;
-		new_set = get_fs_long((unsigned long *) set) & _BLOCKABLE;
+		new_set = get_user(set) & _BLOCKABLE;
 		switch (how) {
 		case SIG_BLOCK:
 			current->blocked |= new_set;
@@ -47,7 +47,7 @@
 		error = verify_area(VERIFY_WRITE, oset, sizeof(sigset_t));
 		if (error)
 			return error;
-		put_fs_long(old_set, (unsigned long *) oset);
+		put_user(old_set, oset);
 	}
 	return 0;
 }
@@ -71,7 +71,7 @@
 	/* fill in "set" with signals pending but blocked. */
 	error = verify_area(VERIFY_WRITE, set, 4);
 	if (!error)
-		put_fs_long(current->blocked & current->signal, (unsigned long *)set);
+		put_user(current->blocked & current->signal, set);
 	return error;
 }
 

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