commit | 608cc4b14aeadcf3e4dc325fc211b7052e74b50c | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Wed Sep 06 11:45:24 2017 +0200 |
committer | Christoph Hellwig <hch@lst.de> | Mon Sep 11 12:29:36 2017 -0400 |
tree | 19f45967e83e8b033f1c3e60eef0f7c78047d41c | |
parent | 09c2c359be546df45be0b158ea1d3cc8ea83c876 [diff] |
nvme: fix lightnvm check nvme_nvm_ns_supported assumes every device is a pci_dev, which leads to reading an incorrect field, or possible even a dereference of unallocated memory for fabrics controllers. Fix this by introducing a quirk for lighnvm capable devices instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Matias Bjørling <mb@lightnvm.io> Reviewed-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me>