git: 48766013063a - releng/15.0 - nvmf: Fix null ptr reference
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Mar 2026 01:11:19 UTC
The branch releng/15.0 has been updated by philip:
URL: https://cgit.FreeBSD.org/src/commit/?id=48766013063a737f063ce9122bd29bdc193456dc
commit 48766013063a737f063ce9122bd29bdc193456dc
Author: Mariusz Zaborski <oshogbo@FreeBSD.org>
AuthorDate: 2026-03-23 14:37:28 +0000
Commit: Philip Paeps <philip@FreeBSD.org>
CommitDate: 2026-03-25 06:51:29 +0000
nvmf: Fix null ptr reference
Approved by: so
Security: FreeBSD-SA-26:07.nvmf
Security: CVE-2026-4652
Reported by: Nikolay Denev <ndenev@gmail.com>
Reviewed by: imp, jhb
Differential Revision: https://reviews.freebsd.org/D55863
(cherry picked from commit 09c5bb35425bc70573c007e7f7e82be286677a87)
(cherry picked from commit b1d32521747f42aea751d2742d26eb53e81952c6)
---
sys/dev/nvmf/controller/nvmft_controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/nvmf/controller/nvmft_controller.c b/sys/dev/nvmf/controller/nvmft_controller.c
index 390467534ca2..24aa1191b1eb 100644
--- a/sys/dev/nvmf/controller/nvmft_controller.c
+++ b/sys/dev/nvmf/controller/nvmft_controller.c
@@ -213,7 +213,7 @@ nvmft_handoff_io_queue(struct nvmft_port *np, enum nvmf_trtype trtype,
if (ctrlr == NULL) {
mtx_unlock(&np->lock);
printf("NVMFT: Nonexistent controller %u for I/O queue %u from %.*s\n",
- ctrlr->cntlid, qid, (int)sizeof(data->hostnqn),
+ cntlid, qid, (int)sizeof(data->hostnqn),
data->hostnqn);
nvmft_connect_invalid_parameters(qp, cmd, true,
offsetof(struct nvmf_fabric_connect_data, cntlid));