Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2017 16:48:05 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320412 - head/sys/cam/nvme
Message-ID:  <201706271648.v5RGm5q1009345@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Jun 27 16:48:05 2017
New Revision: 320412
URL: https://svnweb.freebsd.org/changeset/base/320412

Log:
  Namespace is 32-bits, don't cast it to 16 here

Modified:
  head/sys/cam/nvme/nvme_da.c

Modified: head/sys/cam/nvme/nvme_da.c
==============================================================================
--- head/sys/cam/nvme/nvme_da.c	Tue Jun 27 16:30:01 2017	(r320411)
+++ head/sys/cam/nvme/nvme_da.c	Tue Jun 27 16:48:05 2017	(r320412)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706271648.v5RGm5q1009345>