From f52a2e7631c511197c423277d3a6ba94eabc46ab Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 31 Aug 2006 21:59:19 +0200 Subject: 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 Acked-by: Matthew Wilcox Signed-off-by: Adrian Bunk --- net/core/ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/core') diff --git a/net/core/ethtool.c b/net/core/ethtool.c index e6f76106a99..c680b7e04eb 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; -- cgit v1.2.3-18-g5258