Commit cb6f46f6 authored by David S. Miller's avatar David S. Miller

Tigon3 net driver bug fix:

- ETHTOOL_GLINK handling forgets to return on success
parent 31db45e3
......@@ -4777,6 +4777,7 @@ static int tg3_ethtool_ioctl (struct net_device *dev, void *useraddr)
edata.data = netif_carrier_ok(tp->dev) ? 1 : 0;
if (copy_to_user(useraddr, &edata, sizeof(edata)))
return -EFAULT;
return 0;
}
case ETHTOOL_GCOALESCE: {
struct ethtool_coalesce ecoal = { ETHTOOL_GCOALESCE };
......
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