[CRIU] [PATCH] mount: Invert check for shared mounts check

Andrew Vagin avagin at parallels.com
Fri Oct 31 04:00:27 PDT 2014


On Fri, Oct 31, 2014 at 01:49:36PM +0400, Pavel Emelyanov wrote:
> Introduced by eb214be2, the empty mnt_share list cannot
> produce the list_first_entry element :)

Acked-by: Andrew Vagin <avagin at parallels.com>

Thanks.

> 
> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
> ---
>  mount.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mount.c b/mount.c
> index b142c47..f62fd04 100644
> --- a/mount.c
> +++ b/mount.c
> @@ -376,7 +376,7 @@ static int validate_shared(struct mount_info *m)
>  {
>  	struct mount_info *ct, *t;
>  
> -	if (!list_empty(&m->parent->mnt_share))
> +	if (list_empty(&m->parent->mnt_share))
>  		return 0;
>  
>  	t = list_first_entry(&m->parent->mnt_share, struct mount_info, mnt_share);
> -- 
> 1.8.4.2
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list