diff options
| author | Ivan Abramov <i.abramov@mt-integration.ru> | 2025-04-03 13:19:34 +0300 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2026-06-19 21:40:53 +0200 |
| commit | e69ed6fc9fb3b386b5fcdb9f51623f122cee2ebd (patch) | |
| tree | 32e96a8e6b5b29a77eac39e1eadcb7c800155de8 /net | |
| parent | 0569f67ed6a7af838e2141da93c68e6b6013f483 (diff) | |
| download | ath-e69ed6fc9fb3b386b5fcdb9f51623f122cee2ebd.tar.gz | |
ieee802154: Remove WARN_ON() in cfg802154_pernet_exit()
There's no need to call WARN_ON() in cfg802154_pernet_exit(), since
every point of failure in cfg802154_switch_netns() is covered with
WARN_ON(), so remove it.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Fixes: 66e5c2672cd1 ("ieee802154: add netns support")
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
Link: https://lore.kernel.org/20250403101935.991385-4-i.abramov@mt-integration.ru
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net')
| -rw-r--r-- | net/ieee802154/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/core.c b/net/ieee802154/core.c index 987c633e2c549..c0b8712018a16 100644 --- a/net/ieee802154/core.c +++ b/net/ieee802154/core.c @@ -358,7 +358,7 @@ static void __net_exit cfg802154_pernet_exit(struct net *net) rtnl_lock(); list_for_each_entry(rdev, &cfg802154_rdev_list, list) { if (net_eq(wpan_phy_net(&rdev->wpan_phy), net)) - WARN_ON(cfg802154_switch_netns(rdev, &init_net)); + cfg802154_switch_netns(rdev, &init_net); } rtnl_unlock(); } |
