diff options
author | phk <phk@FreeBSD.org> | 1994-12-18 18:48:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-12-18 18:48:39 +0000 |
commit | a08ba0961a80b5d2aaeb35e3a116d3834881a9e1 (patch) | |
tree | 438333d1021773dd90428023cc9bfd3b5805d74c | |
parent | 66ba4449a145472c6cdb0b42e9f87ad3b1d8b480 (diff) | |
download | FreeBSD-src-a08ba0961a80b5d2aaeb35e3a116d3834881a9e1.zip FreeBSD-src-a08ba0961a80b5d2aaeb35e3a116d3834881a9e1.tar.gz |
Make sure we allocate at least 8 scbus if we allocate any at all.
-rw-r--r-- | sys/scsi/scsiconf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index c502b5f..53c1cd1 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: scsiconf.c,v 1.15 1994/11/17 23:22:22 ats Exp $ + * $Id: scsiconf.c,v 1.16 1994/11/27 23:30:48 ats Exp $ */ #include <sys/types.h> @@ -30,7 +30,15 @@ #include "cd.h" #include "uk.h" #include "su.h" + #include "scbus.h" +/* If we have any at all, we want at least 8 */ +#if NSCBUS > 0 +#if NSCBUS < 8 +#undef NSCBUS +#endif /* NSCBUS < 8 */ +#endif /* NSCBUS > 0 */ + #ifndef NSCBUS #define NSCBUS 8 #endif /* NSCBUS */ |