[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 3f894775488dd7fb62907d149d0d1959b67de049..b88806c66244b2df825f6bb43bbb20b251cce21c 100644 (file)
@@ -612,7 +612,6 @@ void kernel_restart(char *cmd)
        } else {
                printk(KERN_EMERG "Restarting system with command '%s'.\n", cmd);
        }
-       printk(".\n");
        machine_restart(cmd);
 }
 EXPORT_SYMBOL_GPL(kernel_restart);
@@ -2084,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;
 }