fs: add do_faccessat() helper and ksys_access() wrapper; remove in-kernel calls to...
[linux-block.git] / init / main.c
index b8649d1466e1896aed249098da61d5b50e5d90ac..d0ded4322c6b7bc70b197eec8559faad099791e9 100644 (file)
@@ -1087,7 +1087,8 @@ static noinline void __init kernel_init_freeable(void)
        if (!ramdisk_execute_command)
                ramdisk_execute_command = "/init";
 
-       if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) {
+       if (ksys_access((const char __user *)
+                       ramdisk_execute_command, 0) != 0) {
                ramdisk_execute_command = NULL;
                prepare_namespace();
        }