projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f5404d
)
PCI hotplug: shpchp: fix bus number check to avoid false positive
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 11 Feb 2009 20:13:45 +0000
(21:13 +0100)
committer
Jesse Barnes
<jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:33 +0000
(19:29 -0700)
With for (busnr = 0; busnr <= end; busnr++) { ... } busnr reaches end + 1
after the loop. So fix the "no busses available" check to look for just
busnr > end rather than >=.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/shpchp_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/hotplug/shpchp_pci.c
b/drivers/pci/hotplug/shpchp_pci.c
index 138f161becc0758ef36121896b71f17ecc769c8c..aa315e52529bf60e0c72bd85142cf695c5c5c232 100644
(file)
--- a/
drivers/pci/hotplug/shpchp_pci.c
+++ b/
drivers/pci/hotplug/shpchp_pci.c
@@
-137,7
+137,7
@@
int __ref shpchp_configure_device(struct slot *p_slot)
busnr))
break;
}
- if (busnr >
=
end) {
+ if (busnr > end) {
ctrl_err(ctrl,
"No free bus for hot-added bridge\n");
pci_dev_put(dev);