Message ID | 20220415165330.10497-4-florent.fourcot@wifirst.fr (mailing list archive) |
---|---|
State | Accepted |
Commit | dee04163e9f2feabb77615c630a1e31a91cc4449 |
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 5899b1d2de14..73f2cbc440c9 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3158,7 +3158,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;