summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-07-17 18:54:40 +0200
committerJeff Garzik <jeff@garzik.org>2006-07-17 18:54:40 +0200
commite1b90c416d6e6b71fc63974c1798e3cf55bba77f (patch)
tree3ae537a5af8ee37f21b169c3de45ae29eca7c80f /net
parentLinux 2.6.18-rc2 (diff)
downloadlinux-e1b90c416d6e6b71fc63974c1798e3cf55bba77f.tar.xz
linux-e1b90c416d6e6b71fc63974c1798e3cf55bba77f.zip
[NET] ethtool: fix oops by testing correct struct member
Noticed by Willy Tarreau. Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'net')
-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 27ce1683caf5..2797e2815418 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -437,7 +437,7 @@ static int ethtool_set_pauseparam(struct net_device *dev, void __user *useraddr)
{
struct ethtool_pauseparam pauseparam;
- if (!dev->ethtool_ops->get_pauseparam)
+ if (!dev->ethtool_ops->set_pauseparam)
return -EOPNOTSUPP;
if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam)))