Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa04ae5c authored by David S. Miller's avatar David S. Miller
Browse files

[ETHTOOL]: Check correct pointer in ethtool_set_coalesce().



It was checking the "GET" function pointer instead of
the "SET" one.  Looks like a cut&paste error :-)

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7cef5677
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -356,7 +356,7 @@ static int ethtool_set_coalesce(struct net_device *dev, void __user *useraddr)
{
{
	struct ethtool_coalesce coalesce;
	struct ethtool_coalesce coalesce;


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


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