diff options
author | Christoph Hellwig <hch@lst.de> | 2025-01-28 08:55:33 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2025-01-28 07:07:21 -0800 |
commit | 7bf6b497a747b0e28a411beacdd62f1488d0781c (patch) | |
tree | ee1430fbe90f4517de74290c8da5335a937f38be | |
parent | 58f5c8d5ca07a2f9fa93fb073f5b1646ec482ff2 (diff) |
nvmet: the result field in nvmet_alloc_ctrl_args is little endian
So use the __le32 type for it.
Fixes: 6202783184bf ("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>
-rw-r--r-- | drivers/nvme/target/nvmet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index f4df458df9db..6a9af4e4d732 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -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; }; |