summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-06-06 22:07:19 (GMT)
committerDavid S. Miller <davem@davemloft.net>2005-06-06 22:07:19 (GMT)
commitfa04ae5c09f3dfedbc923c2954a9a26a573833f1 (patch)
treedf0b22f8d9f8c954cfb6d863dabb89bde430aac4 /net/core
parent7cef5677ef3a8084f2588ce0a129dc95d65161f6 (diff)
downloadlinux-fsl-qoriq-fa04ae5c09f3dfedbc923c2954a9a26a573833f1.tar.xz
[ETHTOOL]: Check correct pointer in ethtool_set_coalesce().
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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index 8ec4848..a3eeb88 100644
--- 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->get_coalesce)
+ if (!dev->ethtool_ops->set_coalesce)
return -EOPNOTSUPP;
if (copy_from_user(&coalesce, useraddr, sizeof(coalesce)))