Skip to content

Commit

Permalink
__detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore
Browse files Browse the repository at this point in the history
... not since 1e9c75f ("mnt: fix __detach_mounts infinite loop")

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 4, 2019
1 parent 1cfb707 commit adc9b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit adc9b5c

Please sign in to comment.