Commit 24bbcc04 authored by Scott Feldman's avatar Scott Feldman Committed by Jeff Garzik

[E100] back out memleak patch cuz it messed up following

On Thu, 20 Mar 2003, Scott Feldman wrote:


* Back this patch out - we'll add it later.  I was working against
  2.5.64 when this was checked into 2.5.65, so it messed up
  my patches.
parent d99c48c6
...@@ -3784,15 +3784,11 @@ static int e100_ethtool_gstrings(struct net_device *dev, struct ifreq *ifr) ...@@ -3784,15 +3784,11 @@ static int e100_ethtool_gstrings(struct net_device *dev, struct ifreq *ifr)
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
if (copy_to_user(ifr->ifr_data, &info, sizeof (info))) { if (copy_to_user(ifr->ifr_data, &info, sizeof (info)))
kfree(strings);
return -EFAULT; return -EFAULT;
}
if (copy_to_user(usr_strings, strings, info.len * ETH_GSTRING_LEN)) { if (copy_to_user(usr_strings, strings, info.len * ETH_GSTRING_LEN))
kfree(strings);
return -EFAULT; return -EFAULT;
}
kfree(strings); kfree(strings);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment