diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2015-07-29 21:10:11 -0700 |
---|---|---|
committer | Mark Salyzyn <|account-1032276@2620:0:1000:1601:ec85:28e2:ddf:4b24> | 2015-10-29 20:12:05 +0000 |
commit | 69c791342876671439782a435df43c044ab6c31d (patch) | |
tree | 2d2be54921fc8886765014206082260b772e2a40 /security | |
parent | e471d38798061ba35a79ca4addaa304e848639cb (diff) |
Revert "SELinux: use deletion-safe iterator to free list"
This reverts commit e623b152f30f6f1204919315df37244d69e5d55e.
Bug: 22846070
Change-Id: Ief7a906b613adcf316e734270a1da2fbd1ce6cb8
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/avc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 21a34153df14..76766f4c920b 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -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); } |