commit | b0d61d586f09fd814a45a5d778fe0d6123f67c2a | [log] [tgz] |
---|---|---|
author | Keith Busch <keith.busch@intel.com> | Thu Nov 16 13:36:49 2017 -0700 |
committer | Christoph Hellwig <hch@lst.de> | Mon Nov 20 08:38:11 2017 +0100 |
tree | 475f348d8742332afb1cee36185892ec17ac97f6 | |
parent | 89c4aff6d4f71726f22e567f046dc1dd73c35de1 [diff] |
nvme: Fix NULL dereference on reservation request This fixes using the NULL 'head' before getting the reference. It is however possible the head will always be NULL, so this patch uses the struct nvme_ns to get the ns_id field. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>