diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-08-05 19:50:15 +0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-08-18 15:37:56 +0400 |
commit | 9b29d3c6510407d91786c1cf9183ff4debb3473a (patch) | |
tree | 6ba5f79299a91bd4f697800b3c8ae66bb444caec /tools | |
parent | e7f9fa5498d91fcdc63d93007ba43f36b1a30538 (diff) | |
download | linux-9b29d3c6510407d91786c1cf9183ff4debb3473a.tar.xz |
iommu/amd: Fix cleanup_domain for mass device removal
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.
Cc: stable@vger.kernel.org
Tested-by: Marti Raudsepp <marti@juffo.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions