]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ethtool: oops in ethtool_set_pauseparam()
authorWilly Tarreau <willy@wtap.(none)>
Wed, 5 Jul 2006 20:34:52 +0000 (22:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:21 +0000 (20:35 -0700)
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>
net/core/ethtool.c

index c680b7e04eb8e007d65498c4dd10864153d12979..4fe39cf53c898b114622cfc13233f51344c8fe1a 100644 (file)
@@ -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)))