Skip to content

Commit 83d9f65

Browse files
Yinghai LuH. Peter Anvin
authored andcommitted
x86, setup: Fix earlyprintk=serial,ttyS0,115200
Torsten reported that there is garbage output, after commit 8fee13a (x86, setup: enable early console output from the decompressor) It turns out we missed the offset for that case. Reported-by: Torsten Kaiser <just.for.lkml@googlemail.com> Signed-off-by: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <4C7B0578.8090807@kernel.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 parent b30a3f6 commit 83d9f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/boot/early_serial_console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void parse_earlyprintk(void)
5858
if (arg[pos] == ',')
5959
pos++;
6060

61-
if (!strncmp(arg, "ttyS", 4)) {
61+
if (!strncmp(arg + pos, "ttyS", 4)) {
6262
static const int bases[] = { 0x3f8, 0x2f8 };
6363
int idx = 0;
6464

0 commit comments

Comments
 (0)