commit | e1b90c416d6e6b71fc63974c1798e3cf55bba77f | [log] [tgz] |
---|---|---|
author | Jeff Garzik <jeff@garzik.org> | Mon Jul 17 12:54:40 2006 -0400 |
committer | Jeff Garzik <jeff@garzik.org> | Mon Jul 17 12:54:40 2006 -0400 |
tree | 3ae537a5af8ee37f21b169c3de45ae29eca7c80f | |
parent | 82d6897fefca6206bca7153805b4c5359ce97fc4 [diff] [blame] |
[NET] ethtool: fix oops by testing correct struct member Noticed by Willy Tarreau. Signed-off-by: Jeff Garzik <jeff@garzik.org>
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 27ce168..2797e28 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c
@@ -437,7 +437,7 @@ { 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)))