net/mlx4_en: Can set maxrate only for TC0
authorAmir Vadai <amirv@mellanox.com>
Wed, 28 Nov 2012 11:43:15 +0000 (13:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2012 16:15:32 +0000 (11:15 -0500)
Had a typo in memcpy.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c

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