]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kboot: Use is_linux_error to check mmap return error
authorWarner Losh <imp@FreeBSD.org>
Mon, 11 Mar 2024 20:15:39 +0000 (14:15 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 11 Mar 2024 21:21:52 +0000 (15:21 -0600)
commitd75524b3fe21752b233f66ae8e9d6450d507f75c
tree274bb35893aba5f8e580739b43e95cd09a2bf1bb
parenta9cd3b675e243648aa681bc6ce1bf3e788be88c8
kboot: Use is_linux_error to check mmap return error

Rather than checking against the (incorrect) -511, use the
is_linux_error() function to check to see if host_mmap failed.

Sponsored by: Netflix
stand/kboot/kboot/main.c