Commit 8812fb2d authored by John Johansen's avatar John Johansen Committed by Tim Gardner

Revert "UBUNTU: SAUCE: apparmor: Fix: label_vec_merge insertion"

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

This reverts commit 4cce60ba994d9c9e58d731c14cb257ca2c4ddeb6.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent e6ce3c3c
......@@ -1160,11 +1160,11 @@ struct aa_label *aa_label_vec_merge(struct aa_profile **vec, int len,
if (!new)
return NULL;
write_lock_irqsave(&ls->lock, flags);
for (i = 0; i < len; i++) {
new->ent[i] = aa_get_profile(vec[i]);
label = __aa_label_insert(ls, new, false);
}
write_lock_irqsave(&ls->lock, flags);
label = __aa_label_insert(ls, new, false);
write_unlock_irqrestore(&ls->lock, flags);
if (label != new)
/* not fully constructed don't put */
......
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