diff options
author | Mike Pagano <mpagano@gentoo.org> | 2015-06-20 13:35:59 -0400 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2015-06-20 13:35:59 -0400 |
commit | 9a98f7941dcc85687150d8fef5885931cc6f841a (patch) | |
tree | cc14b26f0b241610e24361567e2088c7048a2145 | |
parent | Linux patch 4.0.5 (diff) | |
download | linux-patches-9a98f7941dcc85687150d8fef5885931cc6f841a.tar.gz linux-patches-9a98f7941dcc85687150d8fef5885931cc6f841a.tar.bz2 linux-patches-9a98f7941dcc85687150d8fef5885931cc6f841a.zip |
Add check to saved_root_name for supported filesystem path naming.
-rw-r--r-- | 2900_dev-root-proc-mount-fix.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2900_dev-root-proc-mount-fix.patch b/2900_dev-root-proc-mount-fix.patch index 6ea86e29..4cd558e7 100644 --- a/2900_dev-root-proc-mount-fix.patch +++ b/2900_dev-root-proc-mount-fix.patch @@ -18,7 +18,7 @@ #ifdef CONFIG_BLOCK - create_dev("/dev/root", ROOT_DEV); - mount_block_root("/dev/root", root_mountflags); -+ if (saved_root_name[0]) { ++ if (saved_root_name[0] == '/') { + create_dev(saved_root_name, ROOT_DEV); + mount_block_root(saved_root_name, root_mountflags); + } else { |