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>
Thu, 28 Nov 2019 17:28:22 +0000 (18:28 +0100)
commit818e60fce7e007526c912a6b0f22cab9de8aa342
treefeefe040fc20f35dbfaf447864fbba6dd156b2e1
parent6fd2efed5bbb2e234505a57ae5559f38e3d10590
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