Re: [PATCH net v2] ieee802154: keep the original error after a netns rollback

From: Stefan Schmidt

Date: Thu Nov 26 2026 - 04:31:07 EST


Hello Andrey Misiurov.

On Fri, 20 Nov 2026 07:57:49 +0100, Andrey Misiurov wrote:
> cfg802154_switch_netns() moves all of a phy's netdevs into a new netns. If
> one move fails, it jumps to the errout label and moves the already-moved
> netdevs back to the old netns.
>
> That rollback loop overwrites the same 'err' variable with the result of
> each move-back. The move-backs succeed, so 'err' ends up 0 and the function
> returns 0 -- success -- even though nothing moved and the phy stayed in the
> old netns. nl802154_wpan_phy_netns() then tells userspace the move worked.
>
> [...]

Applied to wpan/wpan.git, thanks!

[1/1] ieee802154: keep the original error after a netns rollback
https://git.kernel.org/wpan/wpan/c/006dfe9c1d68

regards,
Stefan Schmidt