projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c6b192
)
m68k: fix command-line parsing when passed from u-boot
author
Angelo Dureghello
<angelo@sysam.it>
Fri, 7 Sep 2018 12:44:25 +0000
(14:44 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:13:24 +0000
(09:13 +0100)
[ Upstream commit
381fdd62c38344a771aed06adaf14aae65c47454
]
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 <angelo@sysam.it>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/m68k/kernel/uboot.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/m68k/kernel/uboot.c
b/arch/m68k/kernel/uboot.c
index b29c3b241e1bb590eba500918e39e4ce9bc59796..10708287706451e4d7801a1ad334e7523b3cc259 100644
(file)
--- 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;
}