From: David S. Miller Date: Mon, 6 Jun 2005 22:07:19 +0000 (-0700) Subject: [ETHTOOL]: Check correct pointer in ethtool_set_coalesce(). X-Git-Tag: v2.6.12~82^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=fa04ae5c09f3dfedbc923c2954a9a26a573833f1;p=~shefty%2Frdma-dev.git [ETHTOOL]: Check correct pointer in ethtool_set_coalesce(). It was checking the "GET" function pointer instead of the "SET" one. Looks like a cut&paste error :-) Signed-off-by: David S. Miller --- diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 8ec484894d6..a3eeb88e1c8 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -356,7 +356,7 @@ static int ethtool_set_coalesce(struct net_device *dev, void __user *useraddr) { struct ethtool_coalesce coalesce; - if (!dev->ethtool_ops->get_coalesce) + if (!dev->ethtool_ops->set_coalesce) return -EOPNOTSUPP; if (copy_from_user(&coalesce, useraddr, sizeof(coalesce)))