nvmet: fix byte swap in nvmet_parse_io_cmd
authorChristoph Hellwig <hch@lst.de>
Fri, 31 Mar 2017 15:00:08 +0000 (17:00 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Sun, 2 Apr 2017 07:24:15 +0000 (10:24 +0300)
commit793c7ed9d785411a5cd6fe7e998cd7ee2870b38b
tree471509dbb132f277ce509c0f9dcf41b1c275fbe4
parent78ce3daa7d703028c00eff2e03ad22efd116e549
nvmet: fix byte swap in nvmet_parse_io_cmd

We need to do arithmetics after byte swapping, not before.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/io-cmd.c