mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
__detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore
... not since 1e9c75fb9c
("mnt: fix __detach_mounts infinite loop")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1cfb7072c1
commit
adc9b5c091
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user