Skip to content

Commit adc9b5c

Browse files
author
Al Viro
committed
__detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore
... not since 1e9c75f ("mnt: fix __detach_mounts infinite loop") Signed-off-by: Al Viro <[email protected]>
1 parent 1cfb707 commit adc9b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ void __detach_mounts(struct dentry *dentry)
16251625
namespace_lock();
16261626
lock_mount_hash();
16271627
mp = lookup_mountpoint(dentry);
1628-
if (IS_ERR_OR_NULL(mp))
1628+
if (!mp)
16291629
goto out_unlock;
16301630

16311631
event++;

0 commit comments

Comments
 (0)