summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2014-08-05 19:50:15 +0400
committerJoerg Roedel <jroedel@suse.de>2014-08-18 15:37:56 +0400
commit9b29d3c6510407d91786c1cf9183ff4debb3473a (patch)
tree6ba5f79299a91bd4f697800b3c8ae66bb444caec /tools
parente7f9fa5498d91fcdc63d93007ba43f36b1a30538 (diff)
downloadlinux-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