projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4890202
)
PCI: fix pciehp_free_irq()
author
Adrian Bunk
<
[email protected]
>
Wed, 27 Aug 2008 22:05:26 +0000
(
01:05
+0300)
committer
Jesse Barnes
<
[email protected]
>
Wed, 10 Sep 2008 17:50:57 +0000
(10:50 -0700)
This patch fixes an obvious bug (loop was never entered) caused by
commit
820943b6fc4781621dee52ba026106758a727dd3
(pciehp: cleanup pcie_poll_cmd).
Reported-by: Adrian Bunk <
[email protected]
>
Signed-off-by: Adrian Bunk <
[email protected]
>
Acked-by: Kenji Kaneshige <
[email protected]
>
Signed-off-by: Jesse Barnes <
[email protected]
>
drivers/pci/hotplug/pciehp_hpc.c
patch
|
blob
|
history
diff --git
a/drivers/pci/hotplug/pciehp_hpc.c
b/drivers/pci/hotplug/pciehp_hpc.c
index ab31f5ba665d14c23ba3d3f19194eb154312e9c1..9d934ddee95661b76c133864591c545bdba571cc 100644
(file)
--- a/
drivers/pci/hotplug/pciehp_hpc.c
+++ b/
drivers/pci/hotplug/pciehp_hpc.c
@@
-258,7
+258,7
@@
static int pcie_poll_cmd(struct controller *ctrl)
return 1;
}
}
- while (timeout >
100
0) {
+ while (timeout > 0) {
msleep(10);
timeout -= 10;
if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) {