2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

mount: Invert check for shared mounts check

Introduced by eb214be2, the empty mnt_share list cannot
produce the list_first_entry element :)

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Andrew Vagin <avagin@parallels.com>
This commit is contained in:
Pavel Emelyanov 2014-10-31 13:49:00 +04:00
parent 2e91a9c814
commit defdb96b9b

View File

@ -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);