Try to handle possible vm_register() failures and return an error back
authorclaudio <claudio@openbsd.org>
Tue, 4 Jan 2022 15:25:05 +0000 (15:25 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 4 Jan 2022 15:25:05 +0000 (15:25 +0000)
commitec4b63a0df5b03c2e1dc0107b77c6af50227dcc4
treecbab9eda2dc32002feabd543b41f688969802453
parent79ac00b5ed2f141216d7dd6613d54f737b28d6f3
Try to handle possible vm_register() failures and return an error back
to the caller instead of most probably crashing because of a NULL pointer
access. This fixes also another -Wunused-but-set-variable warning.
OK benno@ dv@
usr.sbin/vmd/vmm.c