git: 7bf44831ca05 - main - bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 19:35:48 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7bf44831ca05c67169fd90408b514573ddbbcf9d commit 7bf44831ca05c67169fd90408b514573ddbbcf9d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-03-22 19:34:56 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-03-22 19:34:56 +0000 bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D39212 --- usr.sbin/bhyve/qemu_fwcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */