commit:     97608c66db0b4ea264f5fc4a6516f124d71da412
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 28 20:02:50 2015 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Sat Mar 28 20:02:50 2015 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=97608c66

Add check to saved_root_name for supported filesystem path naming.

 2900_dev-root-proc-mount-fix.patch | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/2900_dev-root-proc-mount-fix.patch 
b/2900_dev-root-proc-mount-fix.patch
index 4c89adf..4a7e42a 100644
--- a/2900_dev-root-proc-mount-fix.patch
+++ b/2900_dev-root-proc-mount-fix.patch
@@ -1,6 +1,6 @@
---- a/init/do_mounts.c 2013-01-25 19:11:11.609802424 -0500
-+++ b/init/do_mounts.c 2013-01-25 19:14:20.606053568 -0500
-@@ -461,7 +461,10 @@ void __init change_floppy(char *fmt, ...
+--- a/init/do_mounts.c 2015-03-28 16:00:36.114842442 -0400
++++ b/init/do_mounts.c 2015-03-28 16:01:57.768841663 -0400
+@@ -480,7 +480,10 @@ void __init change_floppy(char *fmt, ...
        va_start(args, fmt);
        vsprintf(buf, fmt, args);
        va_end(args);
@@ -12,12 +12,12 @@
        if (fd >= 0) {
                sys_ioctl(fd, FDEJECT, 0);
                sys_close(fd);
-@@ -505,7 +508,13 @@ void __init mount_root(void)
+@@ -524,7 +527,13 @@ void __init mount_root(void)
  #endif
  #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