Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22513
b: refs/heads/master
c: d6aafa6
h: refs/heads/master
i:
  22511: 53b384a
v: v3
  • Loading branch information
James Morris authored and Linus Torvalds committed Mar 22, 2006
1 parent 447f479 commit 1730135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 253a8b1db1af146d3a7eef0f3626781df12c7141
refs/heads/master: d6aafa65354cd2dbb089ab9e7dc618f22230fe32
7 changes: 2 additions & 5 deletions trunk/security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,22 +1151,19 @@ static int sel_make_avc_files(struct dentry *dir)
dentry = d_alloc_name(dir, files[i].name);
if (!dentry) {
ret = -ENOMEM;
goto err;
goto out;
}

inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode);
if (!inode) {
ret = -ENOMEM;
goto err;
goto out;
}
inode->i_fop = files[i].ops;
d_add(dentry, inode);
}
out:
return ret;
err:
d_genocide(dir);
goto out;
}

static int sel_make_dir(struct super_block *sb, struct dentry *dentry)
Expand Down

0 comments on commit 1730135

Please sign in to comment.