Hi Angelo,

On 07/09/18 22:44, Angelo Dureghello wrote:
This patch fixes command_line array zero-terminated
one byte over the end of the array, causing boot to hang.

Signed-off-by: Angelo Dureghello <ang...@sysam.it>

Thanks, that looks like that might be it.
Pushed to the for-next branch of the m68knommu git tree.

Regards
Greg


---
  arch/m68k/kernel/uboot.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/m68k/kernel/uboot.c b/arch/m68k/kernel/uboot.c
index b29c3b241e1b..107082877064 100644
--- a/arch/m68k/kernel/uboot.c
+++ b/arch/m68k/kernel/uboot.c
@@ -102,5 +102,5 @@ __init void process_uboot_commandline(char *commandp, int 
size)
        }
parse_uboot_commandline(commandp, len);
-       commandp[size - 1] = 0;
+       commandp[len - 1] = 0;
  }

Reply via email to