]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[ETHTOOL]: Check correct pointer in ethtool_set_coalesce().
authorDavid S. Miller <davem@davemloft.net>
Mon, 6 Jun 2005 22:07:19 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jun 2005 22:07:19 +0000 (15:07 -0700)
It was checking the "GET" function pointer instead of
the "SET" one.  Looks like a cut&paste error :-)

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c

index 8ec484894d6805662dd98ef5f495f34611aee57a..a3eeb88e1c81fabe1eea26499958723955b08615 100644 (file)
@@ -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)))