diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-03-22 19:34:56 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-03-22 19:34:56 +0000 |
commit | 7bf44831ca05c67169fd90408b514573ddbbcf9d (patch) | |
tree | 201d55c9d2cc914eeff26a123d843b07f32df538 | |
parent | 61482760a0ca198a9310d450133e9ac792b67955 (diff) | |
download | src-7bf44831ca05c67169fd90408b514573ddbbcf9d.tar.gz src-7bf44831ca05c67169fd90408b514573ddbbcf9d.zip |
bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D39212
-rw-r--r-- | usr.sbin/bhyve/qemu_fwcfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/qemu_fwcfg.c b/usr.sbin/bhyve/qemu_fwcfg.c index 2d91213dc7c5..2cc334190c15 100644 --- a/usr.sbin/bhyve/qemu_fwcfg.c +++ b/usr.sbin/bhyve/qemu_fwcfg.c @@ -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 */ |