Skip to content

Commit

Permalink
m68k: fix command-line parsing when passed from u-boot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Angelo Dureghello authored and Greg Ungerer committed Oct 15, 2018
1 parent 35a7f35 commit 381fdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/kernel/uboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 381fdd6

Please sign in to comment.