]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] ETHTOOL: Fix UFO typo
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2006 07:09:30 +0000 (00:09 -0700)
committerChris Wright <chrisw@sous-sol.org>
Fri, 30 Jun 2006 00:17:15 +0000 (17:17 -0700)
The function ethtool_get_ufo was referring to ETHTOOL_GTSO instead of
ETHTOOL_GUFO.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/core/ethtool.c

index e6f76106a99b3929c8c56ec5a62a64103b9d0c6b..c680b7e04eb8e007d65498c4dd10864153d12979 100644 (file)
@@ -591,7 +591,7 @@ static int ethtool_set_tso(struct net_device *dev, char __user *useraddr)
 
 static int ethtool_get_ufo(struct net_device *dev, char __user *useraddr)
 {
-       struct ethtool_value edata = { ETHTOOL_GTSO };
+       struct ethtool_value edata = { ETHTOOL_GUFO };
 
        if (!dev->ethtool_ops->get_ufo)
                return -EOPNOTSUPP;
@@ -600,6 +600,7 @@ static int ethtool_get_ufo(struct net_device *dev, char __user *useraddr)
                 return -EFAULT;
        return 0;
 }
+
 static int ethtool_set_ufo(struct net_device *dev, char __user *useraddr)
 {
        struct ethtool_value edata;