mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
ieee802154: Remove WARN_ON() in cfg802154_pernet_exit()
[ Upstream commite69ed6fc9f] 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:66e5c2672c("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e74488982e
commit
ded58bfebc
@@ -327,7 +327,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user