Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f351841f authored by John Johansen's avatar John Johansen
Browse files

apparmor: fix put() parent ref after updating the active ref

parent 6059f71f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1187,8 +1187,8 @@ ssize_t aa_replace_profiles(void *udata, size_t size, bool noreplace)
			/* parent replaced in this atomic set? */
			if (newest != parent) {
				aa_get_profile(newest);
				aa_put_profile(parent);
				rcu_assign_pointer(ent->new->parent, newest);
				aa_put_profile(parent);
			}
			/* aafs interface uses replacedby */
			rcu_assign_pointer(ent->new->replacedby->profile,