git: b1d32521747f - stable/15 - nvmf: Fix null ptr reference
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Mar 2026 01:29:47 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=b1d32521747f42aea751d2742d26eb53e81952c6
commit b1d32521747f42aea751d2742d26eb53e81952c6
Author: Mariusz Zaborski <oshogbo@FreeBSD.org>
AuthorDate: 2026-03-23 14:37:28 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-03-25 01:27:40 +0000
nvmf: Fix null ptr reference
Reported by: Nikolay Denev <ndenev@gmail.com>
Reviewed by: imp, jhb
Differential Revision: https://reviews.freebsd.org/D55863
(cherry picked from commit 09c5bb35425bc70573c007e7f7e82be286677a87)
---
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));