diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-06 11:45:24 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-09-11 12:29:36 -0400 |
commit | 608cc4b14aeadcf3e4dc325fc211b7052e74b50c (patch) | |
tree | 19f45967e83e8b033f1c3e60eef0f7c78047d41c /drivers/nvme/host/fabrics.h | |
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>
Diffstat (limited to 'drivers/nvme/host/fabrics.h')
0 files changed, 0 insertions, 0 deletions