diff options
| author | Warner Losh <imp@FreeBSD.org> | 2024-03-11 20:15:39 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-03-11 21:21:52 +0000 |
| commit | d75524b3fe21752b233f66ae8e9d6450d507f75c (patch) | |
| tree | 274bb35893aba5f8e580739b43e95cd09a2bf1bb /stand/kboot | |
| parent | a9cd3b675e243648aa681bc6ce1bf3e788be88c8 (diff) | |
Diffstat (limited to 'stand/kboot')
| -rw-r--r-- | stand/kboot/kboot/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/kboot/kboot/main.c b/stand/kboot/kboot/main.c index c397e573fc75..e57446baa47d 100644 --- a/stand/kboot/kboot/main.c +++ b/stand/kboot/kboot/main.c @@ -232,7 +232,7 @@ caddr_t ptov(uintptr_t pa) * the raw system call we have to do that ourselves. */ va = host_mmap(0, PAGE, HOST_PROT_READ, HOST_MAP_SHARED, smbios_fd, pa2); - if ((intptr_t)va < 0 && (intptr_t)va >= -511) + if (is_linux_error((long)va)) panic("smbios mmap offset %#jx failed", (uintmax_t)pa2); m = &map[nmap++]; m->pa = pa2; |
