dt-bindings: can: rcar_canfd: document r8a774c0 support
[platform/kernel/linux-starfive.git] / fs / namespace.c
index 3357c3d..ffb13f0 100644 (file)
@@ -2599,7 +2599,7 @@ static int do_move_mount(struct path *old_path, struct path *new_path)
        if (attached && !check_mnt(old))
                goto out;
 
-       if (!attached && !is_anon_ns(ns))
+       if (!attached && !(ns && is_anon_ns(ns)))
                goto out;
 
        if (old->mnt.mnt_flags & MNT_LOCKED)