Li RongQing 61da5c1d99 netns: restore ops before calling ops_exit_list
commit b272a0ad730103e84fb735fd0a8cc050cdf7f77c upstream.

ops has been iterated to first element when call pre_exit, and
it needs to restore from save_ops, not save ops to save_ops

Fixes: d7d99872c144 ("netns: add pre_exit method to struct pernet_operations")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 15605b333ddaa3e5e21dfebb65546c70bb167925)
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-10-30 14:08:26 +00:00
..
2022-04-27 13:15:32 +02:00
2023-06-21 15:38:58 +02:00
2024-04-16 10:30:35 +00:00
2024-10-24 10:07:39 +00:00
2024-06-03 12:29:51 +00:00
2021-06-30 08:48:47 -04:00
2023-06-21 15:38:58 +02:00
2023-06-21 15:38:58 +02:00