diff mbox

[LEDE-DEV] kernel: fix missing break in ubi auto-mounting patch

Message ID 1466539624-769-1-git-send-email-hauke@hauke-m.de
State Accepted
Delegated to: Daniel Golle
Headers show

Commit Message

Hauke Mehrtens June 21, 2016, 8:07 p.m. UTC
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 .../492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch      | 3 ++-
 .../492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch      | 3 ++-
 .../492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch      | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)

Comments

Jo-Philipp Wich June 23, 2016, 9:14 a.m. UTC | #1
On 06/21/2016 10:07 PM, Hauke Mehrtens wrote:
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
> ---
>  .../492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch      | 3 ++-
>  .../492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch      | 3 ++-
>  .../492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch      | 5 +++--
>  3 files changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch b/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> index e4f31fd..3f2b439 100644
> --- a/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> +++ b/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> @@ -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;
>  +		}
> diff --git a/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch b/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> index 005de3f..f6c71a2 100644
> --- a/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> +++ b/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> @@ -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;
>  +		}
> diff --git a/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch b/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> index d21e6d2..ab8b8bb 100644
> --- a/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> +++ b/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
> @@ -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
>
diff mbox

Patch

diff --git a/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch b/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
index e4f31fd..3f2b439 100644
--- a/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
+++ b/target/linux/generic/patches-3.18/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
@@ -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;
 +		}
diff --git a/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch b/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
index 005de3f..f6c71a2 100644
--- a/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
+++ b/target/linux/generic/patches-4.1/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
@@ -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;
 +		}
diff --git a/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch b/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
index d21e6d2..ab8b8bb 100644
--- a/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
+++ b/target/linux/generic/patches-4.4/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
@@ -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