git: f89431787317 - stable/13 - bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 03 May 2023 00:29:40 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=f89431787317fc75a1a7b3b7ea48ad78e9e0e33f

commit f89431787317fc75a1a7b3b7ea48ad78e9e0e33f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-03-22 19:34:56 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-05-03 00:07:05 +0000

    bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.
    
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D39212
    
    (cherry picked from commit 7bf44831ca05c67169fd90408b514573ddbbcf9d)
---
 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 95e713f9df4e..af819dc4a952 100644
--- a/usr.sbin/bhyve/qemu_fwcfg.c
+++ b/usr.sbin/bhyve/qemu_fwcfg.c
@@ -335,7 +335,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 */