commit:     9a98f7941dcc85687150d8fef5885931cc6f841a
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 20 17:35:59 2015 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Sat Jun 20 17:35:59 2015 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9a98f794

Add check to saved_root_name for supported filesystem path naming.

 2900_dev-root-proc-mount-fix.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/2900_dev-root-proc-mount-fix.patch 
b/2900_dev-root-proc-mount-fix.patch
index 6ea86e2..4cd558e 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 {

Reply via email to