mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
ns: initialize ns_list_node for initial namespaces
Make sure that the list is always initialized for initial namespaces.
Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-8-2e6f823ebdc0@kernel.org
Fixes: 885fc8ac0a ("nstree: make iterator generic")
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
0b1765830c
commit
3dd50c5866
|
|
@ -127,6 +127,7 @@ void __ns_common_free(struct ns_common *ns);
|
|||
.ops = to_ns_operations(&nsname), \
|
||||
.stashed = NULL, \
|
||||
.__ns_ref = REFCOUNT_INIT(refs), \
|
||||
.ns_list_node = LIST_HEAD_INIT(nsname.ns.ns_list_node), \
|
||||
}
|
||||
|
||||
#define ns_common_init(__ns) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user