Message ID | 20220624144001.95518-2-clement.leger@bootlin.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1c6e8088d9a74674b4017f8d2090ca9a314954b7 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | add support for Renesas RZ/N1 ethernet subsystem devices | expand |
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 2e1ac638d135..509b98dd9954 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -2460,8 +2460,9 @@ static int dsa_slave_changeupper(struct net_device *dev, if (!err) dsa_bridge_mtu_normalization(dp); if (err == -EOPNOTSUPP) { - NL_SET_ERR_MSG_MOD(extack, - "Offloading not supported"); + if (!extack->_msg) + NL_SET_ERR_MSG_MOD(extack, + "Offloading not supported"); err = 0; } err = notifier_from_errno(err);