Files
linux/drivers/iommu
Joerg Roedel b15dba9397 iommu/amd: Fix cleanup_domain for mass device removal
commit 9b29d3c651 upstream.

When multiple devices are detached in __detach_device, they
are also removed from the domains dev_list. This makes it
unsafe to use list_for_each_entry_safe, as the next pointer
might also not be in the list anymore after __detach_device
returns. So just repeatedly remove the first element of the
list until it is empty.

Tested-by: Marti Raudsepp <marti@juffo.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-17 09:03:57 -07:00
..
2012-07-24 12:58:49 +02:00
2013-03-09 18:54:34 +01:00
2012-12-03 18:48:23 +01:00
2012-12-03 18:48:23 +01:00