kernel: fix missing break in ubi auto-mounting patch
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
459a8afff1
commit
dc140e00a9
3 changed files with 7 additions and 4 deletions
|
@ -11,7 +11,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
|
|
||||||
--- a/init/do_mounts.c
|
--- a/init/do_mounts.c
|
||||||
+++ b/init/do_mounts.c
|
+++ b/init/do_mounts.c
|
||||||
@@ -433,7 +433,27 @@ retry:
|
@@ -433,7 +433,28 @@ retry:
|
||||||
out:
|
out:
|
||||||
put_page(page);
|
put_page(page);
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
+ case -EACCES:
|
+ case -EACCES:
|
||||||
+ flags |= MS_RDONLY;
|
+ flags |= MS_RDONLY;
|
||||||
+ tried++;
|
+ tried++;
|
||||||
|
+ break;
|
||||||
+ default:
|
+ default:
|
||||||
+ return err;
|
+ return err;
|
||||||
+ }
|
+ }
|
||||||
|
|
|
@ -11,7 +11,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
|
|
||||||
--- a/init/do_mounts.c
|
--- a/init/do_mounts.c
|
||||||
+++ b/init/do_mounts.c
|
+++ b/init/do_mounts.c
|
||||||
@@ -438,7 +438,27 @@ retry:
|
@@ -438,7 +438,28 @@ retry:
|
||||||
out:
|
out:
|
||||||
put_page(page);
|
put_page(page);
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
+ case -EACCES:
|
+ case -EACCES:
|
||||||
+ flags |= MS_RDONLY;
|
+ flags |= MS_RDONLY;
|
||||||
+ tried++;
|
+ tried++;
|
||||||
|
+ break;
|
||||||
+ default:
|
+ default:
|
||||||
+ return err;
|
+ return err;
|
||||||
+ }
|
+ }
|
||||||
|
|
|
@ -11,7 +11,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
|
|
||||||
--- a/init/do_mounts.c
|
--- a/init/do_mounts.c
|
||||||
+++ b/init/do_mounts.c
|
+++ b/init/do_mounts.c
|
||||||
@@ -438,7 +438,27 @@ retry:
|
@@ -438,7 +438,28 @@ retry:
|
||||||
out:
|
out:
|
||||||
put_page(page);
|
put_page(page);
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
+ case -EACCES:
|
+ case -EACCES:
|
||||||
+ flags |= MS_RDONLY;
|
+ flags |= MS_RDONLY;
|
||||||
+ tried++;
|
+ tried++;
|
||||||
|
+ break;
|
||||||
+ default:
|
+ default:
|
||||||
+ return err;
|
+ return err;
|
||||||
+ }
|
+ }
|
||||||
|
@ -40,7 +41,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
#ifdef CONFIG_ROOT_NFS
|
#ifdef CONFIG_ROOT_NFS
|
||||||
|
|
||||||
#define NFSROOT_TIMEOUT_MIN 5
|
#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");
|
change_floppy("root floppy");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue