Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
07a8e62f
Commit
07a8e62f
authored
May 29, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drbd: ->d_parent is never NULL or negative
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2853908a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
drivers/block/drbd/drbd_debugfs.c
drivers/block/drbd/drbd_debugfs.c
+0
-4
security/inode.c
security/inode.c
+0
-4
No files found.
drivers/block/drbd/drbd_debugfs.c
View file @
07a8e62f
...
...
@@ -430,9 +430,6 @@ static int drbd_single_open(struct file *file, int (*show)(struct seq_file *, vo
/* Are we still linked,
* or has debugfs_remove() already been called? */
parent
=
file
->
f_path
.
dentry
->
d_parent
;
/* not sure if this can happen: */
if
(
!
parent
||
d_really_is_negative
(
parent
))
goto
out
;
/* serialize with d_delete() */
inode_lock
(
d_inode
(
parent
));
/* Make sure the object is still alive */
...
...
@@ -445,7 +442,6 @@ static int drbd_single_open(struct file *file, int (*show)(struct seq_file *, vo
if
(
ret
)
kref_put
(
kref
,
release
);
}
out:
return
ret
;
}
...
...
security/inode.c
View file @
07a8e62f
...
...
@@ -191,10 +191,6 @@ void securityfs_remove(struct dentry *dentry)
if
(
!
dentry
||
IS_ERR
(
dentry
))
return
;
parent
=
dentry
->
d_parent
;
if
(
!
parent
||
d_really_is_negative
(
parent
))
return
;
inode_lock
(
d_inode
(
parent
));
if
(
simple_positive
(
dentry
))
{
if
(
d_is_dir
(
dentry
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment