summaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel
diff options
context:
space:
mode:
authorLinus Torvalds2018-10-29 17:04:26 +0100
committerLinus Torvalds2018-10-29 17:04:26 +0100
commit673c790e72822ee433931ea701e4fceef75a0eac (patch)
tree78152c0b1098044984473789b4c9d40671b2a38e /arch/m68k/kernel
parentMerge tag 'm68k-for-v4.20-tag1' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
parentm68k: fix command-line parsing when passed from u-boot (diff)
downloadkernel-qcow2-linux-673c790e72822ee433931ea701e4fceef75a0eac.tar.gz
kernel-qcow2-linux-673c790e72822ee433931ea701e4fceef75a0eac.tar.xz
kernel-qcow2-linux-673c790e72822ee433931ea701e4fceef75a0eac.zip
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68k nommu fix from Greg Ungerer: "Only a single change to fix an out of bounds array access when parsing boot command line" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: fix command-line parsing when passed from u-boot
Diffstat (limited to 'arch/m68k/kernel')
-rw-r--r--arch/m68k/kernel/uboot.c2
1 files changed, 1 insertions, 1 deletions
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;
}