Revert "apparmor: fix possible NULL pointer dereference"
This reverts commit 4844a2d420
.
This commit is contained in:
parent
7473e7c839
commit
0d2a0ec88b
1 changed files with 0 additions and 4 deletions
|
@ -1679,10 +1679,6 @@ int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent)
|
||||||
struct aa_profile *p;
|
struct aa_profile *p;
|
||||||
p = aa_deref_parent(profile);
|
p = aa_deref_parent(profile);
|
||||||
dent = prof_dir(p);
|
dent = prof_dir(p);
|
||||||
if (!dent) {
|
|
||||||
error = -ENOENT;
|
|
||||||
goto fail2;
|
|
||||||
}
|
|
||||||
/* adding to parent that previously didn't have children */
|
/* adding to parent that previously didn't have children */
|
||||||
dent = aafs_create_dir("profiles", dent);
|
dent = aafs_create_dir("profiles", dent);
|
||||||
if (IS_ERR(dent))
|
if (IS_ERR(dent))
|
||||||
|
|
Loading…
Add table
Reference in a new issue