aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index 6366fb1325d7..d382a4d9ce98 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -798,9 +798,9 @@ ndaregister(struct cam_periph *periph, void *arg)
* the serial or model number strings.
*/
cam_strvis(disk->d_descr, cd->mn,
- sizeof(disk->d_descr), NVME_MODEL_NUMBER_LENGTH);
+ NVME_MODEL_NUMBER_LENGTH, sizeof(disk->d_descr));
cam_strvis(disk->d_ident, cd->sn,
- sizeof(disk->d_ident), NVME_SERIAL_NUMBER_LENGTH);
+ NVME_SERIAL_NUMBER_LENGTH, sizeof(disk->d_ident));
disk->d_hba_vendor = cpi.hba_vendor;
disk->d_hba_device = cpi.hba_device;
disk->d_hba_subvendor = cpi.hba_subvendor;