The LBA Range Type feature is optional in the NVMe specification, so we should continue with adding namespaces for controllers that do not implement this feature.
Unified · Split
| @@ -1540,7 +1540,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev) · 1539 unmodified lines | ||
| 1540 | 1540 | res = nvme_get_features(dev, NVME_FEAT_LBA_RANGE, i, |
| 1541 | 1541 | dma_addr + 4096, NULL); |
| 1542 | 1542 | if (res) |
| 1543 | − continue; | |
| 1543 | + memset(mem + 4096, 0, 4096); | |
| 1544 | 1544 | |
| 1545 | 1545 | ns = nvme_alloc_ns(dev, i, mem, mem + 4096); |
| 1546 | 1546 | if (ns) |