diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-30 11:37:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-30 11:37:55 -0400 |
commit | 369aa8395a5dcc89230f1de5459124c4b0db9fca (patch) | |
tree | d95edf4c52e343e2080427ad153da051ea52eee6 /kernel/sys.c | |
parent | bf603625660b1742004bf86432ce3c210d14d4fd (diff) | |
parent | c84ef5305930d19bdd6cd576b3a3a73786a82e57 (diff) |
Merge branch 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6
* 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6:
[PATCH] Use early clobber in semaphores
[PATCH] Define vsyscall cache as blob to make clearer that user space shouldn't use it
[PATCH] Re-positioning the bss segment
[PATCH] Use ARRAY_SIZE in setup.c
[PATCH] i386: replace intermediate array-size definitions with ARRAY_SIZE()
[PATCH] x86: Clean up x86 NMI sysctls
[PATCH] Refactor some duplicated code in mpparse.c
[PATCH] Document iommu=panic
[PATCH] Fix broken indentation in iommu_setup
[PATCH] Allow disabling DAC using command line options
[PATCH] Add proper sparse __user casts to __copy_to_user_inatomic
[PATCH] i386: Update defconfig
[PATCH] Update defconfig
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 8647061c084a..b88806c66244 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -2083,12 +2083,12 @@ asmlinkage long sys_getcpu(unsigned __user *cpup, unsigned __user *nodep, | |||
2083 | * padding | 2083 | * padding |
2084 | */ | 2084 | */ |
2085 | unsigned long t0, t1; | 2085 | unsigned long t0, t1; |
2086 | get_user(t0, &cache->t0); | 2086 | get_user(t0, &cache->blob[0]); |
2087 | get_user(t1, &cache->t1); | 2087 | get_user(t1, &cache->blob[1]); |
2088 | t0++; | 2088 | t0++; |
2089 | t1++; | 2089 | t1++; |
2090 | put_user(t0, &cache->t0); | 2090 | put_user(t0, &cache->blob[0]); |
2091 | put_user(t1, &cache->t1); | 2091 | put_user(t1, &cache->blob[1]); |
2092 | } | 2092 | } |
2093 | return err ? -EFAULT : 0; | 2093 | return err ? -EFAULT : 0; |
2094 | } | 2094 | } |