]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - init/do_mounts_rd.c
init: mark __user address space on string literals
[net-next-2.6.git] / init / do_mounts_rd.c
index bf3ef667bf3669d4332fbaa5fdd65784823c0f54..6e1ee6987c78dbca4cb3f01aaa031e4b3a42708f 100644 (file)
@@ -168,7 +168,7 @@ int __init rd_load_image(char *from)
        char rotator[4] = { '|' , '/' , '-' , '\\' };
 #endif
 
-       out_fd = sys_open("/dev/ram", O_RDWR, 0);
+       out_fd = sys_open((const char __user __force *) "/dev/ram", O_RDWR, 0);
        if (out_fd < 0)
                goto out;
 
@@ -267,7 +267,7 @@ noclose_input:
        sys_close(out_fd);
 out:
        kfree(buf);
-       sys_unlink("/dev/ram");
+       sys_unlink((const char __user __force *) "/dev/ram");
        return res;
 }