Revert "apparmor: fix possible NULL pointer dereference"

This reverts commit 4844a2d420.
This commit is contained in:
Ksawlii 2024-11-24 00:23:48 +01:00
parent 7473e7c839
commit 0d2a0ec88b

View file

@ -1679,10 +1679,6 @@ int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent)
struct aa_profile *p;
p = aa_deref_parent(profile);
dent = prof_dir(p);
if (!dent) {
error = -ENOENT;
goto fail2;
}
/* adding to parent that previously didn't have children */
dent = aafs_create_dir("profiles", dent);
if (IS_ERR(dent))