From: Al Viro Date: Sat, 29 Jun 2019 16:06:51 +0000 (-0400) Subject: __detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=adc9b5c09129fd8df17d83ca9a5b0532632a1b77;p=linux.git __detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore ... not since 1e9c75fb9c47 ("mnt: fix __detach_mounts infinite loop") Signed-off-by: Al Viro --- diff --git a/fs/namespace.c b/fs/namespace.c index 6fbc9126367a1..746e3fd1f4307 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++;