aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sys.c8
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}