diff --git a/fs/namespace.c b/fs/namespace.c index 1894d1878dbc266333d099852b4c51e6ffa71317..e8f7f8c58c3c64cacb39629db55262c922797a16 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1516,7 +1516,7 @@ void __detach_mounts(struct dentry *dentry) namespace_lock(); mp = lookup_mountpoint(dentry); - if (!mp) + if (IS_ERR_OR_NULL(mp)) goto out_unlock; lock_mount_hash();