提交 381fdd62 编写于 作者: A Angelo Dureghello 提交者: Greg Ungerer

m68k: fix command-line parsing when passed from u-boot

This patch fixes command_line array zero-terminated
one byte over the end of the array, causing boot to hang.
Signed-off-by: NAngelo Dureghello <angelo@sysam.it>
Signed-off-by: NGreg Ungerer <gerg@linux-m68k.org>
上级 35a7f35a
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册