]> git.hungrycats.org Git - linux/commit
[PATCH] PCI Hotplug: rpaphp safe list traversal
authorJohn Rose <johnrose@austin.ibm.com>
Fri, 15 Oct 2004 05:00:07 +0000 (22:00 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 15 Oct 2004 05:00:07 +0000 (22:00 -0700)
commitbeba877c69cae6cb53e0cf35ea39c68475d4fe81
tree830933b2282fadae653000b9e85ecba093c6a48d
parent7363fb21ab812459f4f62065524b5efda8022510
[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