mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
net/mlx4_en: Can set maxrate only for TC0
Had a typo in memcpy. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
92d64c261e
commit
29bb8f4a8d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user