diff options
author | James Morris <jmorris@namei.org> | 2010-05-05 20:56:07 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-05-05 20:56:07 -0400 |
commit | 0ffbe2699cda6afbe08501098dff8a8c2fe6ae09 (patch) | |
tree | 81b1a2305d16c873371b65c5a863c0268036cefe /kernel/sys.c | |
parent | 4e5d6f7ec3833c0da9cf34fa5c53c6058c5908b6 (diff) | |
parent | 7ebd467551ed6ae200d7835a84bbda0dcadaa511 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index eb1ec5c7f03b..0d36d889c74d 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/personality.h> | 36 | #include <linux/personality.h> |
37 | #include <linux/ptrace.h> | 37 | #include <linux/ptrace.h> |
38 | #include <linux/fs_struct.h> | 38 | #include <linux/fs_struct.h> |
39 | #include <linux/gfp.h> | ||
39 | 40 | ||
40 | #include <linux/compat.h> | 41 | #include <linux/compat.h> |
41 | #include <linux/syscalls.h> | 42 | #include <linux/syscalls.h> |
@@ -1086,7 +1087,7 @@ DECLARE_RWSEM(uts_sem); | |||
1086 | 1087 | ||
1087 | #ifdef COMPAT_UTS_MACHINE | 1088 | #ifdef COMPAT_UTS_MACHINE |
1088 | #define override_architecture(name) \ | 1089 | #define override_architecture(name) \ |
1089 | (current->personality == PER_LINUX32 && \ | 1090 | (personality(current->personality) == PER_LINUX32 && \ |
1090 | copy_to_user(name->machine, COMPAT_UTS_MACHINE, \ | 1091 | copy_to_user(name->machine, COMPAT_UTS_MACHINE, \ |
1091 | sizeof(COMPAT_UTS_MACHINE))) | 1092 | sizeof(COMPAT_UTS_MACHINE))) |
1092 | #else | 1093 | #else |