Commit 6f4c2c2d authored by Willy Tarreau's avatar Willy Tarreau Committed by Adrian Bunk

ethtool: fix oops in ethtool_set_pauseparam()

The function pointers which were checked were for their get_* counterparts.
Typically a copy-paste typo.
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Acked-by: default avatarJeff Garzik <jeff@garzik.org>
Acked-by: default avatarDavid Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent f52a2e76
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment