Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2023 00:29:40 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f89431787317 - stable/13 - bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.
Message-ID:  <202305030029.3430TeNY072022@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305030029.3430TeNY072022>