aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-06-27 16:48:05 +0000
committerWarner Losh <imp@FreeBSD.org>2017-06-27 16:48:05 +0000
commit1d6e8110635a28e6b8bfc5e7463efaeed20b191a (patch)
treed150b42b2907499f38d07a8bef5779925dd97ef7 /sys/cam/nvme/nvme_da.c
parent355ffcc84205ae1091e01bc604aa1d69c0d73152 (diff)
downloadsrc-1d6e8110635a28e6b8bfc5e7463efaeed20b191a.tar.gz
src-1d6e8110635a28e6b8bfc5e7463efaeed20b191a.zip
Namespace is 32-bits, don't cast it to 16 here
Notes
Notes: svn path=/head/; revision=320412
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index 1aa9954747a3..a801730b9a84 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -743,7 +743,7 @@ ndaregister(struct cam_periph *periph, void *arg)
/*
* The name space ID is the lun, save it for later I/O
*/
- softc->nsid = (uint16_t)xpt_path_lun_id(periph->path);
+ softc->nsid = (uint32_t)xpt_path_lun_id(periph->path);
/*
* Register this media as a disk