From: Willy Tarreau Date: Thu, 31 Aug 2006 20:02:56 +0000 (+0200) Subject: ethtool: fix oops in ethtool_set_pauseparam() X-Git-Tag: v2.6.16.29-rc1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f4c2c2db705ba2b140773a07cbb57d226f2ba5a;p=thirdparty%2Fkernel%2Fstable.git 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 Acked-by: Jeff Garzik Acked-by: David Miller Signed-off-by: Adrian Bunk --- diff --git a/net/core/ethtool.c b/net/core/ethtool.c index c680b7e04eb8e..4fe39cf53c898 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)))