Skip to content
Commit 9b382768 authored by Roland Dreier's avatar Roland Dreier Committed by Christoph Hellwig
Browse files

nvme: fix handling of metadata_len for NVME_IOCTL_IO_CMD

The old code in nvme_user_cmd() passed the userspace virtual address
from nvme_passthru_cmd.metadata as the length of the metadata buffer
as well as the address to nvme_submit_user_cmd().

Fixes: 63263d60

 ("nvme: Use metadata for passthrough commands")
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent fa441b71
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