Commit defdb96b authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
parent 2e91a9c8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment