projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d64c2
)
net/mlx4_en: Can set maxrate only for TC0
author
Amir Vadai
<amirv@mellanox.com>
Wed, 28 Nov 2012 11:43:15 +0000
(13:43 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
index 5d36795877cb48ef90cd8ea5fac1c11ca05e30d0..b799ab12a2918bb7f0c5b8bdc0d5db70ecaf4392 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
@@
-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;
}