git: 06ec77a42d9f - main - gone_in: initialize va before passing it to gone_panic()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Jun 2025 01:16:54 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=06ec77a42d9f28c2e8fb67df55d1effe2a152be4
commit 06ec77a42d9f28c2e8fb67df55d1effe2a152be4
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-06-25 01:16:16 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-06-25 01:16:16 +0000
gone_in: initialize va before passing it to gone_panic()
Fixes: 01addd846c64fc2c8be610d83bfdc84ddb57f2ec
---
sys/kern/subr_bus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index e7e8896fc100..62a3da964c37 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -6281,8 +6281,8 @@ _gone_in(int major, const char *msg, ...)
{
va_list ap;
- gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg, ap);
va_start(ap, msg);
+ gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg, ap);
vprintf(msg, ap);
va_end(ap);
if (P_OSREL_MAJOR(__FreeBSD_version) < major)
@@ -6294,8 +6294,8 @@ _gone_in_dev(device_t dev, int major, const char *msg, ...)
{
va_list ap;
- gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg, ap);
va_start(ap, msg);
+ gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg, ap);
device_printf(dev, msg, ap);
va_end(ap);
if (P_OSREL_MAJOR(__FreeBSD_version) < major)