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

Commit 69c79134 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by Mark Salyzyn
Browse files

Revert "SELinux: use deletion-safe iterator to free list"



This reverts commit e623b152.

Bug: 22846070
Change-Id: Ief7a906b613adcf316e734270a1da2fbd1ce6cb8
Signed-off-by: default avatarJeff Vander Stoep <jeffv@google.com>
parent e471d387
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -298,15 +298,13 @@ static void avc_operation_decision_free(

static void avc_operation_free(struct avc_operation_node *ops_node)
{
	struct avc_operation_decision_node *od_node, *tmp;
	struct avc_operation_decision_node *od_node;

	if (!ops_node)
		return;

	list_for_each_entry_safe(od_node, tmp, &ops_node->od_head, od_list) {
		list_del(&od_node->od_list);
	list_for_each_entry(od_node, &ops_node->od_head, od_list)
		avc_operation_decision_free(od_node);
	}
	kmem_cache_free(avc_operation_node_cachep, ops_node);
}