nvme: Fix endianness assignment to prp2 in nvme_identify()
So far this is not causing any issue due to NVMe and x86 are using the same endianness, but for correctness, it should be fixed. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
099c2015b0
commit
3e18562961
@ -431,7 +431,7 @@ int nvme_identify(struct nvme_dev *dev, unsigned nsid,
|
|||||||
c.identify.prp2 = 0;
|
c.identify.prp2 = 0;
|
||||||
} else {
|
} else {
|
||||||
dma_addr += (page_size - offset);
|
dma_addr += (page_size - offset);
|
||||||
c.identify.prp2 = dma_addr;
|
c.identify.prp2 = cpu_to_le64(dma_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
c.identify.cns = cpu_to_le32(cns);
|
c.identify.cns = cpu_to_le32(cns);
|
||||||
|
Loading…
Reference in New Issue
Block a user