summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-06-29 18:06:51 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2019-07-05 00:58:37 +0200
commitadc9b5c09129fd8df17d83ca9a5b0532632a1b77 (patch)
tree64f9a05323dbb60c915c051877569c5d3ee1601e /fs/namespace.c
parentnfs: dget_parent() never returns NULL (diff)
downloadlinux-adc9b5c09129fd8df17d83ca9a5b0532632a1b77.tar.xz
linux-adc9b5c09129fd8df17d83ca9a5b0532632a1b77.zip
__detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore
... not since 1e9c75fb9c47 ("mnt: fix __detach_mounts infinite loop") Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
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++;