Message ID | 20220407122559.27515-3-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 6a5764745288..33dbeed7e531 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3121,7 +3121,7 @@ static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, goto out; if (!dev) { - if (tb[IFLA_IFNAME] || ifm->ifi_index > 0) + if (tb[IFLA_IFNAME] || tb[IFLA_ALT_IFNAME] || ifm->ifi_index > 0) err = -ENODEV; goto out;