summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2012-06-15 15:28:15 +0000
committermjacob <mjacob@FreeBSD.org>2012-06-15 15:28:15 +0000
commit5328dda9e8dca75b7e7cd591be47b0509d1e85eb (patch)
tree22e2435fb6cc5a5cc603073a5fde3b99cffec6e1 /sys/dev/isp
parent144a7f643e622e83909cec2f65fbffbfd1365293 (diff)
downloadFreeBSD-src-5328dda9e8dca75b7e7cd591be47b0509d1e85eb.zip
FreeBSD-src-5328dda9e8dca75b7e7cd591be47b0509d1e85eb.tar.gz
If debug values were set, the default from tval floated
down and triggered an attempt to set multiple virtual ports whether you wanted them or not. MFC after: 3 days
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index 62a2162..3764287 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -483,6 +483,7 @@ isp_get_generic_options(device_t dev, ispsoftc_t *isp, int *nvp)
if (bootverbose) {
isp->isp_dblev |= ISP_LOGCONFIG|ISP_LOGINFO;
}
+ tval = 0;
(void) resource_int_value(device_get_name(dev), device_get_unit(dev), "vports", &tval);
if (tval > 0 && tval < 127) {
*nvp = tval;
OpenPOWER on IntegriCloud