commit | 04e2ea67069e285404192a35c24dfe7c53b9c61f | [log] [tgz] |
---|---|---|
author | Suresh Siddha <suresh.b.siddha@intel.com> | Wed Sep 03 16:58:34 2008 -0700 |
committer | Ingo Molnar <mingo@elte.hu> | Thu Oct 16 16:53:05 2008 +0200 |
tree | 38386a8889d61b64d595172b52de96d9f501cc89 | |
parent | 74d04bd7dcb4c6130fd8a314d28bfecc9ae7c360 [diff] |
dmar: use list_for_each_entry_safe() in dmar_dev_scope_init() In dmar_dev_scope_init(), functions called under for_each_drhd_unit()/ for_each_rmrr_units() can delete the list entry under some error conditions. So we should use list_for_each_entry_safe() for safe traversal. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Acked-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>