summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-13 10:10:08 -0400
committerIan Moffett <ian@osmora.org>2024-07-13 10:10:08 -0400
commit99e94cb801590c12f1ce2be08d61af0ed568c358 (patch)
tree7683fe91c5227e52fcb0cc0936be7d58d67b1503 /sys/dev
parenta4eded947942e63e286db06128e6e0042011543a (diff)
kernel: nvme: Set bar field in nvme_ctrl structure
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/nvme.c2
1 files changed, 1 insertions, 1 deletions
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;