Commit 7bf6b497 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Keith Busch
Browse files

nvmet: the result field in nvmet_alloc_ctrl_args is little endian



So use the __le32 type for it.

Fixes: 62027831 ("nvmet: Improve nvmet_alloc_ctrl() interface and implementation")
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 58f5c8d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
};