summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWilly Tarreau <willy@wtap.(none)>2006-07-05 22:34:52 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-07-24 20:35:21 -0700
commit6d4764bead69f0092049fa6fe409d1c989e75af6 (patch)
tree397e2a87e4c53a3c5583bbbca754972c477e07bc /net
parenta78a731dfd6c060dfb6cbc93a0363defb4727212 (diff)
downloadlinux-stable-6d4764bead69f0092049fa6fe409d1c989e75af6.tar.gz
linux-stable-6d4764bead69f0092049fa6fe409d1c989e75af6.tar.bz2
linux-stable-6d4764bead69f0092049fa6fe409d1c989e75af6.zip
ethtool: 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> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 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)))