m68k: fix command-line parsing when passed from u-boot
authorAngelo Dureghello <angelo@sysam.it>
Fri, 7 Sep 2018 12:44:25 +0000 (14:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:13:24 +0000 (09:13 +0100)
commit37aeb6076aeafa1a20c80ea2299498aa9c870d36
tree4f434074e8a49f3be22b590a80a19048f2f5bb2d
parent9c6b1927f85618ad5998c65243a4787c9e228cb1
m68k: fix command-line parsing when passed from u-boot

[ 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