diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index e6283745ecd233794731044787ec8207e4326c54..544805a2421b6be655cecbcd5889e8081a60280b 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -555,8 +555,10 @@ static blk_status_t nvme_setup_prps(struct nvme_dev *dev, struct request *req) int nprps, i; length -= (page_size - offset); - if (length <= 0) + if (length <= 0) { + iod->first_dma = 0; return BLK_STS_OK; + } dma_len -= (page_size - offset); if (dma_len) {