summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2015-06-20 13:35:59 -0400
committerMike Pagano <mpagano@gentoo.org>2015-06-20 13:35:59 -0400
commit9a98f7941dcc85687150d8fef5885931cc6f841a (patch)
treecc14b26f0b241610e24361567e2088c7048a2145
parentLinux patch 4.0.5 (diff)
downloadlinux-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.patch2
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 {