From: Willy Tarreau Date: Wed, 5 Jul 2006 20:34:52 +0000 (+0200) Subject: ethtool: oops in ethtool_set_pauseparam() X-Git-Tag: v2.6.17.7~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4764bead69f0092049fa6fe409d1c989e75af6;p=thirdparty%2Fkernel%2Fstable.git 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 Acked-by: Jeff Garzik Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- 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)))