]> www.infradead.org Git - nvme.git/commit
nvmet: add a missing endianess conversion in nvmet_execute_admin_connect
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jan 2025 07:55:34 +0000 (08:55 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 28 Jan 2025 15:07:21 +0000 (07:07 -0800)
commitcc3d4671a0db9499b201c43faba6c46e1a21274c
tree89181f8e7321231c8c92cf54794b95000cbd23dd
parent7bf6b497a747b0e28a411beacdd62f1488d0781c
nvmet: add a missing endianess conversion in nvmet_execute_admin_connect

The kato field is little endian on the wire, but native endian in
the in-core structure, add the missing byte swap.

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>
drivers/nvme/target/fabrics-cmd.c