提交 e1b90c41 编写于 作者: J Jeff Garzik

[NET] ethtool: fix oops by testing correct struct member

Noticed by Willy Tarreau.
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 82d6897f
......@@ -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)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册