On Mon, May 04, 2015 at 10:16:03AM +0200, Marek Szyprowski wrote:
@@ -719,14 +712,12 @@ static void exynos_iommu_domain_free(struct iommu_domain *domain) spin_lock_irqsave(&priv->lock, flags);
- list_for_each_entry(owner, &priv->clients, client) {
while (!exynos_sysmmu_disable(owner->dev))
; /* until System MMU is actually disabled */
- list_for_each_entry(data, &priv->clients, domain_node) {
if (__sysmmu_disable(data))
data->master = NULL;
}list_del_init(&data->domain_node);
This needs list_for_each_entry_safe.