]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ethtool: fix oops in ethtool_set_pauseparam()
authorWilly Tarreau <w@1wt.eu>
Thu, 31 Aug 2006 20:02:56 +0000 (22:02 +0200)
committerAdrian Bunk <bunk@stusta.de>
Thu, 31 Aug 2006 20:02:56 +0000 (22:02 +0200)
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>
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)))