Commit db7722c5 authored by John Johansen's avatar John Johansen Committed by Tim Gardner

Revert "UBUNTU: SAUCE: apparmor: fix refcount race when finding a child profile"

BugLink: http://bugs.launchpad.net/bugs/1379535

This reverts commit 4dd6c2373c433dad655c265616465bb06ca615d9.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 1c7d0095
......@@ -811,9 +811,7 @@ struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name)
struct aa_profile *profile;
rcu_read_lock();
do {
profile = __find_child(&parent->base.profiles, name);
} while (profile && !aa_get_profile_not0(profile));
profile = aa_get_profile(__find_child(&parent->base.profiles, name));
rcu_read_unlock();
/* refcount released by caller */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment