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: NPaul Menzel <pmenzel+linux-nvme@molgen.mpg.de> Reviewed-by: NPaul Menzel <pmenzel+linux-nvme@molgen.mpg.de> Signed-off-by: NKeith Busch <keith.busch@intel.com> Signed-off-by: NChristoph Hellwig <hch@lst.de> Signed-off-by: NJens Axboe <axboe@kernel.dk>
Showing
想要评论请 注册 或 登录