Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180042
b: refs/heads/master
c: ef52c75
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jan 27, 2010
1 parent d33b66d commit b9a1871
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5998649f779b7148a8a0c10c46cfa99e27d34dfe
refs/heads/master: ef52c75e4b1603f6e6102967ad90118205168eae
11 changes: 2 additions & 9 deletions trunk/fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,8 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
* block. A pointer to that is in the struct vfsmount that we
* have around.
*/
if (!parent) {
if (debugfs_mount && debugfs_mount->mnt_sb) {
parent = debugfs_mount->mnt_sb->s_root;
}
}
if (!parent) {
pr_debug("debugfs: Ah! can not find a parent!\n");
return -EFAULT;
}
if (!parent)
parent = debugfs_mount->mnt_sb->s_root;

*dentry = NULL;
mutex_lock(&parent->d_inode->i_mutex);
Expand Down
11 changes: 2 additions & 9 deletions trunk/security/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,8 @@ static int create_by_name(const char *name, mode_t mode,
* block. A pointer to that is in the struct vfsmount that we
* have around.
*/
if (!parent ) {
if (mount && mount->mnt_sb) {
parent = mount->mnt_sb->s_root;
}
}
if (!parent) {
pr_debug("securityfs: Ah! can not find a parent!\n");
return -EFAULT;
}
if (!parent)
parent = mount->mnt_sb->s_root;

mutex_lock(&parent->d_inode->i_mutex);
*dentry = lookup_one_len(name, parent, strlen(name));
Expand Down

0 comments on commit b9a1871

Please sign in to comment.