net/mlx5: fix memcpy limit?
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Jun 2017 06:24:35 +0000 (16:24 +1000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2017 08:57:27 +0000 (01:57 -0700)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c

index 5cb855fd618fe93908193fd59dfd1023c53a3205..e37453d838dbb669c76c9506fb3afd3723788a85 100644 (file)
@@ -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;
 }