kernel: fix missing break in ubi auto-mounting patch
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 21 Jun 2016 20:07:04 +0000 (22:07 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 27 Jun 2016 06:10:36 +0000 (08:10 +0200)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch

index e4f31fdf176393bd05fa304b97e88db185dbb7d2..3f2b43936234fca6348baf3febb8923cd9baa912 100644 (file)
@@ -11,7 +11,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/init/do_mounts.c
 +++ b/init/do_mounts.c
-@@ -433,7 +433,27 @@ retry:
+@@ -433,7 +433,28 @@ retry:
  out:
        put_page(page);
  }
@@ -29,6 +29,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +                      case -EACCES:
 +                              flags |= MS_RDONLY;
 +                              tried++;
++                              break;
 +                      default:
 +                              return err;
 +              }
index 005de3fcae4a54c5dd5aada2bfba95db3af65d05..f6c71a2f639f723171d58eefdf7f27feee0ca776 100644 (file)
@@ -11,7 +11,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/init/do_mounts.c
 +++ b/init/do_mounts.c
-@@ -438,7 +438,27 @@ retry:
+@@ -438,7 +438,28 @@ retry:
  out:
        put_page(page);
  }
@@ -29,6 +29,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +                      case -EACCES:
 +                              flags |= MS_RDONLY;
 +                              tried++;
++                              break;
 +                      default:
 +                              return err;
 +              }
index d21e6d21cefa11a966f8a249283162529d4cd7c9..ab8b8bb0a264c57b5e0cf45784825f4906f17025 100644 (file)
@@ -11,7 +11,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/init/do_mounts.c
 +++ b/init/do_mounts.c
-@@ -438,7 +438,27 @@ retry:
+@@ -438,7 +438,28 @@ retry:
  out:
        put_page(page);
  }
@@ -29,6 +29,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +                      case -EACCES:
 +                              flags |= MS_RDONLY;
 +                              tried++;
++                              break;
 +                      default:
 +                              return err;
 +              }
@@ -40,7 +41,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  #ifdef CONFIG_ROOT_NFS
  
  #define NFSROOT_TIMEOUT_MIN   5
-@@ -532,6 +552,10 @@ void __init mount_root(void)
+@@ -532,6 +553,10 @@ void __init mount_root(void)
                        change_floppy("root floppy");
        }
  #endif