summaryrefslogtreecommitdiff
path: root/usr/src/lib/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/scsi')
-rw-r--r--usr/src/lib/scsi/plugins/ses/ses2/common/ses2_enclosure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/scsi/plugins/ses/ses2/common/ses2_enclosure.c b/usr/src/lib/scsi/plugins/ses/ses2/common/ses2_enclosure.c
index 099d1a5777..f6bcf8b46d 100644
--- a/usr/src/lib/scsi/plugins/ses/ses2/common/ses2_enclosure.c
+++ b/usr/src/lib/scsi/plugins/ses/ses2/common/ses2_enclosure.c
@@ -273,7 +273,7 @@ enc_parse_subnick(ses_plugin_t *sp, ses_node_t *np)
return (0);
for (dip = &spip->sspci_subnicks[0], i = 0;
- i < spip->sspci_n_subenclosures;
+ i <= spip->sspci_n_subenclosures;
i++, dip++) {
if (!SES_WITHIN_PAGE_STRUCT(dip, spip, len))
break;