mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +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:
2
mount.c
2
mount.c
@@ -376,7 +376,7 @@ static int validate_shared(struct mount_info *m)
|
|||||||
{
|
{
|
||||||
struct mount_info *ct, *t;
|
struct mount_info *ct, *t;
|
||||||
|
|
||||||
if (!list_empty(&m->parent->mnt_share))
|
if (list_empty(&m->parent->mnt_share))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
t = list_first_entry(&m->parent->mnt_share, struct mount_info, mnt_share);
|
t = list_first_entry(&m->parent->mnt_share, struct mount_info, mnt_share);
|
||||||
|
Reference in New Issue
Block a user