Skip to content

Commit

Permalink
[NET] ethtool: fix oops by testing correct struct member
Browse files Browse the repository at this point in the history
Noticed by Willy Tarreau.

Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Jeff Garzik committed Jul 17, 2006
1 parent 82d6897 commit e1b90c4
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 @@ -437,7 +437,7 @@ static int ethtool_set_pauseparam(struct net_device *dev, void __user *useraddr)
{
struct ethtool_pauseparam pauseparam;

if (!dev->ethtool_ops->get_pauseparam)
if (!dev->ethtool_ops->set_pauseparam)
return -EOPNOTSUPP;

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

0 comments on commit e1b90c4

Please sign in to comment.