Skip to content

Commit 7bf6b49

Browse files
Christoph Hellwigkeithbusch
authored andcommitted
nvmet: the result field in nvmet_alloc_ctrl_args is little endian
So use the __le32 type for it. Fixes: 6202783 ("nvmet: Improve nvmet_alloc_ctrl() interface and implementation") Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 58f5c8d commit 7bf6b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/target/nvmet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ struct nvmet_alloc_ctrl_args {
582582
const struct nvmet_fabrics_ops *ops;
583583
struct device *p2p_client;
584584
u32 kato;
585-
u32 result;
585+
__le32 result;
586586
u16 error_loc;
587587
u16 status;
588588
};

0 commit comments

Comments
 (0)