Skip to content
Commit 6f1e8143 authored by Li RongQing's avatar Li RongQing Committed by Paul Gortmaker
Browse files

netns: restore ops before calling ops_exit_list

commit b272a0ad 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: d7d99872

 ("netns: add pre_exit method to struct pernet_operations")
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 549c025a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment