summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-07-14 11:12:09 +0200
committerJens Axboe <axboe@kernel.dk>2017-07-20 08:41:56 -0600
commitdc1a0afbacaeaced8f5679a99047c0467f1099e9 (patch)
tree1ae408d5d2c5cd0c5bd2d28a3e479626e32a90ee /drivers/nvme
parent768516894fb2a0addee6b802af0f8789c0b4c322 (diff)
downloadblackbird-op-linux-dc1a0afbacaeaced8f5679a99047c0467f1099e9.tar.gz
blackbird-op-linux-dc1a0afbacaeaced8f5679a99047c0467f1099e9.zip
nvme: fix byte swapping in the streams code
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index cb96f4a7ae3a..3b77cfe5aa1e 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -336,7 +336,7 @@ static int nvme_get_stream_params(struct nvme_ctrl *ctrl,
c.directive.opcode = nvme_admin_directive_recv;
c.directive.nsid = cpu_to_le32(nsid);
- c.directive.numd = sizeof(*s);
+ c.directive.numd = cpu_to_le32(sizeof(*s));
c.directive.doper = NVME_DIR_RCV_ST_OP_PARAM;
c.directive.dtype = NVME_DIR_STREAMS;
OpenPOWER on IntegriCloud