projects
/
kernel
/
kernel-generic.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
5d36795
..
b799ab1
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;
}