X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=init%2Fdo_mounts.c;h=21d065a55ad884996a8f4fd8527da14db752d4a3;hb=c4a234c3b4f7becec70936000623c62898e2092b;hp=5dfd30b13f48571835c766ec7c9df162feb05fb7;hpb=e3a6fa001dbbf36833159baffc584d1aaa4b11e3;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/init/do_mounts.c b/init/do_mounts.c index 5dfd30b..21d065a 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -510,7 +510,10 @@ struct file_system_type rootfs_fs_type = { void __init init_rootfs(void) { - if (IS_ENABLED(CONFIG_TMPFS) && !saved_root_name[0] && - (!root_fs_names || strstr(root_fs_names, "tmpfs"))) - is_tmpfs = true; + if (IS_ENABLED(CONFIG_TMPFS)) { + if (!saved_root_name[0] && !root_fs_names) + is_tmpfs = true; + else if (root_fs_names && !!strstr(root_fs_names, "tmpfs")) + is_tmpfs = true; + } }