[CRIU] [PATCH] mount: Invert check for shared mounts check
Pavel Emelyanov
xemul at parallels.com
Fri Oct 31 02:49:36 PDT 2014
Introduced by eb214be2, the empty mnt_share list cannot
produce the list_first_entry element :)
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
More information about the CRIU
mailing list