nvme: fix write zeroes offset and count
commit9d6459d21a6e630264ead21558d940366d2f2450
authorKeith Busch <keith.busch@intel.com>
Mon, 11 Mar 2019 15:11:53 +0000 (11 09:11 -0600)
committerKevin Wolf <kwolf@redhat.com>
Tue, 12 Mar 2019 19:30:14 +0000 (12 20:30 +0100)
tree4ff2b8fbaaaba5024b5d17aff57211b57c599167
parent23dece19da41724349809873923e20a48b619cb7
nvme: fix write zeroes offset and count

The implementation used blocks units rather than the expected bytes.

Fixes: c03e7ef12a9 ("nvme: Implement Write Zeroes")
Reported-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c