From: Adrian Bunk This patch fixes an obvious bug (loop was never entered) caused by commit 820943b6fc4781621dee52ba026106758a727dd3 Author: Kenji Kaneshige AuthorDate: Fri Jun 20 12:04:33 2008 +0900 Commit: Jesse Barnes CommitDate: Wed Jun 25 15:54:30 2008 -0700 pciehp: cleanup pcie_poll_cmd Reported-by: Adrian Bunk Signed-off-by: Adrian Bunk Acked-by: Kenji Kaneshige Cc: Jesse Barnes Signed-off-by: Andrew Morton --- drivers/pci/hotplug/pciehp_hpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/pci/hotplug/pciehp_hpc.c~fix-pciehp_free_irq drivers/pci/hotplug/pciehp_hpc.c --- a/drivers/pci/hotplug/pciehp_hpc.c~fix-pciehp_free_irq +++ a/drivers/pci/hotplug/pciehp_hpc.c @@ -258,7 +258,7 @@ static int pcie_poll_cmd(struct controll return 1; } } - while (timeout > 1000) { + while (timeout > 0) { msleep(10); timeout -= 10; if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) { _