[PATCH] Define vsyscall cache as blob to make clearer that user space shouldn't use it
[linux-drm-fsl-dcu.git] / kernel / sys.c
index 8647061c084a6d67b6a484b5287656306f52049b..b88806c66244b2df825f6bb43bbb20b251cce21c 100644 (file)
@@ -2083,12 +2083,12 @@ asmlinkage long sys_getcpu(unsigned __user *cpup, unsigned __user *nodep,
                 * padding
                 */
                unsigned long t0, t1;
-               get_user(t0, &cache->t0);
-               get_user(t1, &cache->t1);
+               get_user(t0, &cache->blob[0]);
+               get_user(t1, &cache->blob[1]);
                t0++;
                t1++;
-               put_user(t0, &cache->t0);
-               put_user(t1, &cache->t1);
+               put_user(t0, &cache->blob[0]);
+               put_user(t1, &cache->blob[1]);
        }
        return err ? -EFAULT : 0;
 }