projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cfb707
)
__detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymore
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 29 Jun 2019 16:06:51 +0000
(12:06 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 4 Jul 2019 22:58:37 +0000
(18:58 -0400)
... not since
1e9c75fb9c47
("mnt: fix __detach_mounts infinite loop")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
patch
|
blob
|
history
diff --git
a/fs/namespace.c
b/fs/namespace.c
index
6fbc912
..
746e3fd
100644
(file)
--- 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++;