Skip to content
Commit 20469a37 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

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: 955b1b5a ("nvme-pci: move use_sgl initialization to nvme_init_iod()")
Reported-by: default avatarPaul Menzel <pmenzel+linux-nvme@molgen.mpg.de>
Reviewed-by: default avatarPaul Menzel <pmenzel+linux-nvme@molgen.mpg.de>
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 32835a07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment