Message ID | 20220407122559.27515-5-florent.fourcot@wifirst.fr (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | rtnetlink: improve ALT_IFNAME config and fix dangerous GROUP usage | expand |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d2164bc635d3..a9a0762eaa1a 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3420,7 +3420,7 @@ static int __rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, return rtnl_group_changelink(skb, net, nla_get_u32(tb[IFLA_GROUP]), ifm, extack, tb); - return -ENODEV; + return -EINVAL; } if (tb[IFLA_MAP] || tb[IFLA_PROTINFO])