-
由 Joerg Roedel 提交于
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: NMarti Raudsepp <marti@juffo.org> Signed-off-by: NJoerg Roedel <jroedel@suse.de>
9b29d3c6