]> git.baikalelectronics.ru Git - kernel.git/commit
netns: restore ops before calling ops_exit_list
authorLi RongQing <lirongqing@baidu.com>
Thu, 20 Jun 2019 11:24:40 +0000 (19:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Jun 2019 23:55:36 +0000 (16:55 -0700)
commit83ec57fad011c88ae29df6b624a3347b081d019a
treec336e6cab223986760b3ca4a6b52b93444865fcd
parent8c5412e049bbd1fb960b8e5dcd7e767c1051896f
netns: restore ops before calling ops_exit_list

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: ca14c01cb8bf ("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>
net/core/net_namespace.c