Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29bb8f4a authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller
Browse files

net/mlx4_en: Can set maxrate only for TC0



Had a typo in memcpy.

Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92d64c26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ static int mlx4_en_dcbnl_ieee_setmaxrate(struct net_device *dev,
	if (err)
		return err;

	memcpy(priv->maxrate, tmp, sizeof(*priv->maxrate));
	memcpy(priv->maxrate, tmp, sizeof(priv->maxrate));

	return 0;
}