PCI hotplug: shpchp: fix bus number check to avoid false positive
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 11 Feb 2009 20:13:45 +0000 (21:13 +0100)
committerJesse Barnes <jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:33 +0000 (19:29 -0700)
commit35e1801ea637810830e653ffe7ff62c7048ae03a
tree29d88f25346980250918d3c868444f1d84aa9b52
parent9f5404d8ea90bfa4d58a3936e5a3d0d28cecf60f
PCI hotplug: shpchp: fix bus number check to avoid false positive

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