bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D39212
This commit is contained in:
John Baldwin 2023-03-22 12:34:56 -07:00
parent 61482760a0
commit 7bf44831ca

View File

@ -300,7 +300,7 @@ qemu_fwcfg_add_file(const char *name, const uint32_t size, void *const data)
warnx(
"%s: Unable to allocate a new qemu fwcfg files directory (count %d)",
__func__, count);
return (-ENOMEM);
return (ENOMEM);
}
/* copy files below file_index to new directory */