Skip to content

Commit

Permalink
nvmet: the result field in nvmet_alloc_ctrl_args is little endian
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Keith Busch committed Jan 28, 2025
1 parent 58f5c8d commit 7bf6b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/target/nvmet.h
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ struct nvmet_alloc_ctrl_args {
const struct nvmet_fabrics_ops *ops;
struct device *p2p_client;
u32 kato;
u32 result;
__le32 result;
u16 error_loc;
u16 status;
};
Expand Down

0 comments on commit 7bf6b49

Please sign in to comment.