From: Yijing Wang Date: Fri, 12 Apr 2013 05:44:17 +0000 (+0000) Subject: PCI: acpiphp: Use list_for_each_entry_safe() in acpiphp_sanitize_bus() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~143^2~3^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d65eba6a7a769bb939303969267cbf1c916358f5;p=pandora-kernel.git PCI: acpiphp: Use list_for_each_entry_safe() in acpiphp_sanitize_bus() Function acpiphp_sanitize_bus() may call pci_stop_and_remove_bus_device(), which in turn may remove device from bus->devices list. So walk the bus->devices list with list_for_each_entry_safe(). Signed-off-by: Yijing Wang Signed-off-by: Jiang Liu Signed-off-by: Bjorn Helgaas Reviewed-by: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: Toshi Kani --- Reading git-diff-tree failed