Commit 3e18562961933c7772b7e91ba6fc1e908b453d93

Authored by Bin Meng
Committed by Tom Rini
1 parent 099c2015b0

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -431,7 +431,7 @@
431 431 c.identify.prp2 = 0;
432 432 } else {
433 433 dma_addr += (page_size - offset);
434   - c.identify.prp2 = dma_addr;
  434 + c.identify.prp2 = cpu_to_le64(dma_addr);
435 435 }
436 436  
437 437 c.identify.cns = cpu_to_le32(cns);