summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/nvme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index addfd66..f471627 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -410,6 +410,7 @@ nvme_init_ns(struct nvme_state *state, uint16_t nsid)
dev->read = nvme_dev_read;
dev->write = nvme_dev_write;
dev->blocksize = ns->lba_bsize;
+ dev->mmap = NULL;
ns->dev_id = device_create(dev, state->major, nsid);
snprintf(devname, sizeof(devname), "nvme0n%d", nsid);