pstree: Init pstree_item::list inside __alloc_pstree_item
This is a bit fishy that we do init @children list here but not @list itself. Better be solid and init everything in one place. Also no need to poke @threads and @nr_threads, we're using xzalloc here anyway. Signed-off-by:Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrey Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
Showing
Please
register
or
sign in
to comment