Skip to content

Commit

Permalink
[ETHTOOL]: Check correct pointer in ethtool_set_coalesce().
Browse files Browse the repository at this point in the history
It was checking the "GET" function pointer instead of
the "SET" one.  Looks like a cut&paste error :-)

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 6, 2005
1 parent 7cef567 commit fa04ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static int ethtool_set_coalesce(struct net_device *dev, void __user *useraddr)
{
struct ethtool_coalesce coalesce;

if (!dev->ethtool_ops->get_coalesce)
if (!dev->ethtool_ops->set_coalesce)
return -EOPNOTSUPP;

if (copy_from_user(&coalesce, useraddr, sizeof(coalesce)))
Expand Down

0 comments on commit fa04ae5

Please sign in to comment.