diff options
author | Willy Tarreau <w@1wt.eu> | 2006-08-31 22:02:56 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-08-31 22:02:56 +0200 |
commit | 6f4c2c2db705ba2b140773a07cbb57d226f2ba5a (patch) | |
tree | 1e491afb10803c8eebbd9496acf213c3081e5d99 /net/core | |
parent | f52a2e7631c511197c423277d3a6ba94eabc46ab (diff) |
ethtool: fix oops in ethtool_set_pauseparam()
The function pointers which were checked were for their get_* counterparts.
Typically a copy-paste typo.
Signed-off-by: Willy Tarreau <w@1wt.eu>
Acked-by: Jeff Garzik <jeff@garzik.org>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index c680b7e04eb8..4fe39cf53c89 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))) |