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:
7cef567
)
[ETHTOOL]: Check correct pointer in ethtool_set_coalesce().
author
David S. Miller
<davem@davemloft.net>
Mon, 6 Jun 2005 22:07:19 +0000
(15:07 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 6 Jun 2005 22:07:19 +0000
(15:07 -0700)
It was checking the "GET" function pointer instead of
the "SET" one. Looks like a cut&paste error :-)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c
patch
|
blob
|
history
diff --git
a/net/core/ethtool.c
b/net/core/ethtool.c
index
8ec4848
..
a3eeb88
100644
(file)
--- a/
net/core/ethtool.c
+++ b/
net/core/ethtool.c
@@
-356,7
+356,7
@@
static int ethtool_set_coalesce(struct net_device *dev, void __user *useraddr)
{
struct ethtool_coalesce coalesce;
- if (!dev->ethtool_ops->
g
et_coalesce)
+ if (!dev->ethtool_ops->
s
et_coalesce)
return -EOPNOTSUPP;
if (copy_from_user(&coalesce, useraddr, sizeof(coalesce)))