]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Namespace IDs are unsigned
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 8 Jul 2013 21:26:25 +0000 (17:26 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 3 Sep 2013 20:32:26 +0000 (16:32 -0400)
commitd376331493aaae88a14713f6465cbf9f24d49fc1
treeaf979e07d60607e4d71faa3770b0ae3bd7005162
parent1314055b82f751b58bf1ddc1151f81516a2a0335
NVMe: Namespace IDs are unsigned

The 'Number of Namespaces' read from the device was being treated as
signed, which would cause us to not scan any namespaces for a device
with more than 2 billion namespaces.  That led to noticing that the
namespace ID was also being treated as signed, which could lead to the
result from NVME_IOCTL_ID being treated as an error code.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c
include/linux/nvme.h