]> git.hungrycats.org Git - linux/commit
[PATCH] PCI Hotplug: rpaphp safe list traversal
authorJohn Rose <johnrose@austin.ibm.com>
Fri, 15 Oct 2004 05:11:26 +0000 (22:11 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 15 Oct 2004 05:11:26 +0000 (22:11 -0700)
commitb86da52f630ef8eace90fb685a39319ef3f7b3d3
tree74f8bbd42cfcf8219ba7aa2521c3d4105fcf3ad7
parent532d0c6a72ac483908f44803a8915df46bfac0d0
[PATCH] PCI Hotplug: rpaphp safe list traversal

Hoping you will accept this fix.  The bug can cause a crash upon hotplug
remove.  The bug involves unsafe traversal of a list while deleting list
members.  The fix uses list_for_each_safe() rather than
list_for_each().  Also threw in an initialization to get rid of a
compiler warning.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/pci/hotplug/rpaphp_pci.c