Skip to content
Commit 49742188 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

NVMe: Fix DMA mapping for admin commands



We were always mapping as DMA_FROM_DEVICE then unmapping with
DMA_TO_DEVICE which was clearly not correct.  Follow the same pattern as
nvme_submit_io() and key off the bottom bit of the opcode to determine
whether this is a read or a write.

Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent ff976d72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment