diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-10-07 13:10:13 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 15:53:04 -0400 |
commit | 2b2c1896871838cdf549442e8ad0264be5fa74e3 (patch) | |
tree | abbc2838e424b93f49a0f08dd885690f8cafa15b /drivers/block | |
parent | 0d1bc9125890426b52ca2de6abedd32e31722e5c (diff) |
NVMe: Don't probe namespace 0
ECN 001 documented that namespace 0 is not valid. Sending an Identify
with CNS of 0 and Namespace of 0 is an undefined command.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 3afdc750aaa8..660aa5dfe569 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -1447,7 +1447,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev) | |||
1447 | memcpy(dev->firmware_rev, ctrl->fr, sizeof(ctrl->fr)); | 1447 | memcpy(dev->firmware_rev, ctrl->fr, sizeof(ctrl->fr)); |
1448 | 1448 | ||
1449 | id_ns = mem; | 1449 | id_ns = mem; |
1450 | for (i = 0; i <= nn; i++) { | 1450 | for (i = 1; i <= nn; i++) { |
1451 | res = nvme_identify(dev, i, 0, dma_addr); | 1451 | res = nvme_identify(dev, i, 0, dma_addr); |
1452 | if (res) | 1452 | if (res) |
1453 | continue; | 1453 | continue; |