projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4093d30
)
tracefs: ->d_parent is never NULL or negative...
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 29 May 2016 18:57:53 +0000
(14:57 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 29 May 2016 20:22:07 +0000
(16:22 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/tracefs/inode.c
patch
|
blob
|
history
diff --git
a/fs/tracefs/inode.c
b/fs/tracefs/inode.c
index
4a0e48f
..
ad40b64
100644
(file)
--- a/
fs/tracefs/inode.c
+++ b/
fs/tracefs/inode.c
@@
-541,9
+541,6
@@
void tracefs_remove(struct dentry *dentry)
return;
parent = dentry->d_parent;
- if (!parent || !parent->d_inode)
- return;
-
inode_lock(parent->d_inode);
ret = __tracefs_remove(dentry, parent);
inode_unlock(parent->d_inode);
@@
-566,10
+563,6
@@
void tracefs_remove_recursive(struct dentry *dentry)
if (IS_ERR_OR_NULL(dentry))
return;
- parent = dentry->d_parent;
- if (!parent || !parent->d_inode)
- return;
-
parent = dentry;
down:
inode_lock(parent->d_inode);