Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfio/mlx5: Fix a typo in mlx5vf_cmd_load_vhca_state()

Fix a typo in mlx5vf_cmd_load_vhca_state() to use the 'load' memory
layout.

As in/out sizes are equal for save and load commands there wasn't any
functional issue.

Fixes: f1d98f346ee3 ("vfio/mlx5: Expose migration commands over mlx5 device")
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20221106174630.25909-3-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Yishai Hadas and committed by
Alex Williamson
2f5d8cef 4e016f96

+2 -2
+2 -2
drivers/vfio/pci/mlx5/cmd.c
··· 378 378 struct mlx5_vf_migration_file *migf) 379 379 { 380 380 struct mlx5_core_dev *mdev; 381 - u32 out[MLX5_ST_SZ_DW(save_vhca_state_out)] = {}; 382 - u32 in[MLX5_ST_SZ_DW(save_vhca_state_in)] = {}; 381 + u32 out[MLX5_ST_SZ_DW(load_vhca_state_out)] = {}; 382 + u32 in[MLX5_ST_SZ_DW(load_vhca_state_in)] = {}; 383 383 u32 pdn, mkey; 384 384 int err; 385 385