summaryrefslogtreecommitdiff
path: root/net/ethtool/rings.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethtool/rings.c')
-rw-r--r--net/ethtool/rings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ethtool/rings.c b/net/ethtool/rings.c
index 93f428e9a6c2..c2ebf72be217 100644
--- a/net/ethtool/rings.c
+++ b/net/ethtool/rings.c
@@ -186,6 +186,9 @@ int ethnl_set_rings(struct sk_buff *skb, struct genl_info *info)
}
ret = dev->ethtool_ops->set_ringparam(dev, &ringparam);
+ if (ret < 0)
+ goto out_ops;
+ ethtool_notify(dev, ETHTOOL_MSG_RINGS_NTF, NULL);
out_ops:
ethnl_ops_complete(dev);