patch-2.1.32 linux/kernel/sys.c

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

diff -u --recursive --new-file v2.1.31/linux/kernel/sys.c linux/kernel/sys.c
@@ -893,13 +893,14 @@
 			gid_t *groups = current->groups;
 			do {
 				if (*groups == grp)
-					break;
+					goto out;
 				groups++;
 				i--;
 			} while (i);
 		}
 		return 0;
 	}
+out:
 	return 1;
 }
 
@@ -1138,7 +1139,6 @@
 
 asmlinkage int sys_umask(int mask)
 {
-	/* The xchg() isn't SMP-safe on x86 right now.. */
 	mask = xchg(&current->fs->umask, mask & S_IRWXUGO);
 	return mask;
 }

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