[CRIU] [PATCH] mount: mnt_entry_alloc -- Don't forget to init @mnt_slave
Andrew Vagin
avagin at odin.com
Thu Aug 27 08:23:24 PDT 2015
On Thu, Aug 27, 2015 at 05:17:30PM +0300, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> mount.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/mount.c b/mount.c
> index 3f8fe81f60bb..478e71d86c15 100644
> --- a/mount.c
> +++ b/mount.c
> @@ -2268,6 +2268,7 @@ struct mount_info *mnt_entry_alloc()
> INIT_LIST_HEAD(&new->children);
> INIT_LIST_HEAD(&new->siblings);
> INIT_LIST_HEAD(&new->mnt_slave_list);
> + INIT_LIST_HEAD(&new->mnt_slave);
new->mnt_slave is entry
new->mnt_slave_list is head for new->mnt_slave entries
Why do we need to initialize it?
> INIT_LIST_HEAD(&new->mnt_share);
> INIT_LIST_HEAD(&new->mnt_bind);
> INIT_LIST_HEAD(&new->postpone);
> --
> 2.4.3
>
More information about the CRIU
mailing list