⬢ DragonFlyBSD Kernel Audit
DF-3731 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/raid/ciss/ciss.c
+++ b/sys/dev/raid/ciss/ciss.c
@@ -2952,9 +2952,9 @@
 	cpi->version_num = 1;
 	cpi->hba_inquiry = PI_TAG_ABLE;	/* XXX is this correct? */
 	cpi->target_sprt = 0;
 	cpi->hba_misc = 0;
-	cpi->max_target = CISS_MAX_LOGICAL;
+	cpi->max_target = CISS_MAX_LOGICAL - 1;
 	cpi->max_lun = 0;		/* 'logical drive' channel only */
 	cpi->initiator_id = CISS_MAX_LOGICAL;
 	strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
         strncpy(cpi->hba_vid, "msmith@freebsd.org", HBA_IDLEN);