author: Al Viro <viro@zeniv.linux.org.uk> 2019-06-29 12:06:51 -0400
committer: Al Viro <viro@zeniv.linux.org.uk> 2019-07-04 18:58:37 -0400
commit: adc9b5c09129fd8df17d83ca9a5b0532632a1b77
parent: 1cfb7072c1cc07d3000d3185b8ae8219d520a9b0
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/namespace.c b/fs/namespace.c
index 6fbc9126367a..746e3fd1f430 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1625,7 +1625,7 @@ void __detach_mounts(struct dentry *dentry)
namespace_lock();
lock_mount_hash();
mp = lookup_mountpoint(dentry);
- if (IS_ERR_OR_NULL(mp))
+ if (!mp)
goto out_unlock;
event++;