kboot: Fix an off by one error
Fix an off-by-one error that would mean we'd get stuck on the newline if ACPI= wasn't first. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D39817
This commit is contained in:
parent
cf6044857e
commit
facd0edbb2
@ -168,7 +168,7 @@ kboot_rsdp_from_efi(void)
|
||||
return((vm_offset_t)strtoull(walker + 7, NULL, 0));
|
||||
if (strncmp("ACPI=", walker, 5) == 0)
|
||||
return((vm_offset_t)strtoull(walker + 5, NULL, 0));
|
||||
walker += strcspn(walker, "\n");
|
||||
walker += strcspn(walker, "\n") + 1;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user