diff options
| author | allan <Allan.Ou@Sun.COM> | 2010-02-03 13:17:43 +0800 |
|---|---|---|
| committer | allan <Allan.Ou@Sun.COM> | 2010-02-03 13:17:43 +0800 |
| commit | c465437abaf8cc10b6cafec2fc1576bc770537ba (patch) | |
| tree | 76655e4789eb029eeaa64cdc95d179508c39471e /usr/src/lib/sun_fc | |
| parent | ff0777f47d04c3c94a9d8ae43a04049f5bd2dbab (diff) | |
| download | illumos-joyent-c465437abaf8cc10b6cafec2fc1576bc770537ba.tar.gz | |
6906192 System panics when creating greater than 205 NPIV vports on 8G adapter.
Diffstat (limited to 'usr/src/lib/sun_fc')
| -rw-r--r-- | usr/src/lib/sun_fc/common/FCHBAPort.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/sun_fc/common/FCHBAPort.cc b/usr/src/lib/sun_fc/common/FCHBAPort.cc index 14b66a9de4..01caf87912 100644 --- a/usr/src/lib/sun_fc/common/FCHBAPort.cc +++ b/usr/src/lib/sun_fc/common/FCHBAPort.cc @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -480,7 +480,7 @@ FCHBAPort::FCHBAPort(string thePath) : HBAPort() { fcio.fcio_xfer = FCIO_XFER_READ; do { retry = false; - bufSize = MAXPATHLEN * size + (int) sizeof (fc_hba_npiv_port_list_t) - 1; + bufSize = MAXPATHLEN * (size - 1) + (int) sizeof (fc_hba_npiv_port_list_t); pathList = (fc_hba_npiv_port_list_t *) new uchar_t[bufSize]; pathList->numAdapters = size; fcio.fcio_olen = bufSize; |
