mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
mount: don't skip checks in validate_mounts()
"continue" is called by mistake, so we skip a few checks for shared mounts without siblings. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
0b2c951358
commit
e43de33f20
5
mount.c
5
mount.c
@@ -377,10 +377,9 @@ static int validate_mounts(struct mount_info *info, bool for_dump)
|
||||
/* root mount can be any */
|
||||
continue;
|
||||
|
||||
if (m->parent->shared_id) {
|
||||
if (m->parent->shared_id && !list_empty(&m->parent->mnt_share)) {
|
||||
struct mount_info *ct;
|
||||
if (list_empty(&m->parent->mnt_share))
|
||||
continue;
|
||||
|
||||
t = list_first_entry(&m->parent->mnt_share, struct mount_info, mnt_share);
|
||||
|
||||
list_for_each_entry(ct, &t->children, siblings) {
|
||||
|
Reference in New Issue
Block a user