Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme-pci: check segement valid for SGL use
The driver needs to verify there is a payload with a command before seeing if it should use SGLs to map it. Fixes: 955b1b5 ("nvme-pci: move use_sgl initialization to nvme_init_iod()") Reported-by: Paul Menzel <pmenzel+linux-nvme@molgen.mpg.de> Reviewed-by: Paul Menzel <pmenzel+linux-nvme@molgen.mpg.de> Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
- Loading branch information