Commit 8e575eed authored by John Johansen's avatar John Johansen Committed by Tim Gardner

Revert "UBUNTU: SAUCE: fixup: cast poison values to remove warnings"

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

This reverts commit 86d51202b3e9fd9e1b44766f231f38f8e88e4c9c.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent db7722c5
...@@ -47,7 +47,7 @@ static void free_replacedby(struct aa_replacedby *r) ...@@ -47,7 +47,7 @@ static void free_replacedby(struct aa_replacedby *r)
/* r->label will not updated any more as r is dead */ /* r->label will not updated any more as r is dead */
aa_put_label(rcu_dereference_protected(r->label, true)); aa_put_label(rcu_dereference_protected(r->label, true));
memset(r, 0, sizeof(*r)); memset(r, 0, sizeof(*r));
r->label = (struct aa_label *) REPLACEDBY_POISON; r->label = REPLACEDBY_POISON;
kfree(r); kfree(r);
} }
} }
...@@ -224,7 +224,7 @@ void aa_label_destroy(struct aa_label *label) ...@@ -224,7 +224,7 @@ void aa_label_destroy(struct aa_label *label)
label_for_each(i, label, profile) { label_for_each(i, label, profile) {
aa_put_profile(profile); aa_put_profile(profile);
label->ent[i.i] = (struct aa_profile *) (LABEL_POISON + (long) i.i); label->ent[i.i] = LABEL_POISON + i.i;
} }
} }
...@@ -233,7 +233,7 @@ void aa_label_destroy(struct aa_label *label) ...@@ -233,7 +233,7 @@ void aa_label_destroy(struct aa_label *label)
aa_free_sid(label->sid); aa_free_sid(label->sid);
aa_put_replacedby(label->replacedby); aa_put_replacedby(label->replacedby);
label->replacedby = (struct aa_replacedby *) REPLACEDBY_POISON + 1; label->replacedby = REPLACEDBY_POISON + 1;
} }
void aa_label_free(struct aa_label *label) void aa_label_free(struct aa_label *label)
......
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