From: Stephen Rothwell Date: Fri, 30 Jun 2017 06:24:35 +0000 (+1000) Subject: net/mlx5: fix memcpy limit? X-Git-Tag: MMI-PSA29.97-13-9~5285^2~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6992c6c5dd4756e665824d4bc29f15b85c2907e0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net/mlx5: fix memcpy limit? Signed-off-by: Stephen Rothwell Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c index 5cb855fd618f..e37453d838db 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c @@ -191,7 +191,7 @@ int mlx5_fpga_query_qp(struct mlx5_core_dev *dev, if (ret) return ret; - memcpy(fpga_qpc, MLX5_ADDR_OF(fpga_query_qp_out, in, fpga_qpc), + memcpy(fpga_qpc, MLX5_ADDR_OF(fpga_query_qp_out, out, fpga_qpc), MLX5_FLD_SZ_BYTES(fpga_query_qp_out, fpga_qpc)); return ret; }