aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/nvme/nvme_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/nvme/nvme_sim.c')
-rw-r--r--sys/dev/nvme/nvme_sim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/nvme/nvme_sim.c b/sys/dev/nvme/nvme_sim.c
index 88582e47972f..b66126b11bce 100644
--- a/sys/dev/nvme/nvme_sim.c
+++ b/sys/dev/nvme/nvme_sim.c
@@ -197,6 +197,8 @@ nvme_sim_action(struct cam_sim *sim, union ccb *ccb)
cpi->xport_specific.nvme.slot = pci_get_slot(dev);
cpi->xport_specific.nvme.function = pci_get_function(dev);
cpi->xport_specific.nvme.extra = 0;
+ strncpy(cpi->xport_specific.nvme.dev_name, device_get_nameunit(ctrlr->dev),
+ sizeof(cpi->xport_specific.nvme.dev_name));
cpi->ccb_h.status = CAM_REQ_CMP;
break;
}