From 99e94cb801590c12f1ce2be08d61af0ed568c358 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Jul 2024 10:10:08 -0400 Subject: kernel: nvme: Set bar field in nvme_ctrl structure Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index d96d254..76127f2 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -408,7 +408,7 @@ nvme_init_ctrl(struct nvme_bar *bar) uint32_t config; uint16_t mqes; uint8_t *nsids; - struct nvme_ctrl ctrl = {0}; + struct nvme_ctrl ctrl = { .bar = bar }; struct nvme_queue *adminq; struct nvme_id *id; -- cgit v1.2.3