From: Herbert Xu Date: Tue, 20 Jun 2006 07:09:30 +0000 (-0700) Subject: [PATCH] ETHTOOL: Fix UFO typo X-Git-Tag: v2.6.17.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94f37cf0a304c16dcf86ec542e88b5448b2edfb7;p=thirdparty%2Fkernel%2Fstable.git [PATCH] ETHTOOL: Fix UFO typo The function ethtool_get_ufo was referring to ETHTOOL_GTSO instead of ETHTOOL_GUFO. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- diff --git a/net/core/ethtool.c b/net/core/ethtool.c index e6f76106a99b3..c680b7e04eb8e 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -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;