diff options
author | Kuniyuki Iwashima <[email protected]> | 2024-07-31 13:07:18 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-08-03 22:38:44 +0100 |
commit | 2b5afc1d5d5a33060034f0f275bc0e9c243394bb (patch) | |
tree | 2d809f255e08735908404c6f9545bed75c6b1c1e /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 768e4bb6a75e3c6a034df7c67edac20bd222857e (diff) |
net: Initialise net->passive once in preinit_net().
When initialising the root netns, we set net->passive in setup_net().
However, we do it twice for non-root netns in copy_net_ns() and
setup_net().
This is because we could bypass setup_net() in copy_net_ns() if
down_read_killable() fails.
preinit_net() is a better place to put such an operation.
Let's initialise net->passive in preinit_net().
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions