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 5d36795..b799ab1 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;
 }