From db4f318c421ef1a74c0a65390acfdf93309b9245 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 19 Jan 1993 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1993-01-19 --- pc/adaptec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pc/adaptec.c b/pc/adaptec.c index bd2ae34647a399efcda31b90569266fec59dbf9a..64a1309e49db8f0840987d88f78622c0e3761c97 100644 --- a/pc/adaptec.c +++ b/pc/adaptec.c @@ -367,8 +367,10 @@ scsiio(int bus, Scsi *p, int rw) int scsiexec(Scsi *p, int rw) { - USED(rw); + Ctlr *ctlr = &softctlr[0]; + if(ctlr->port == 0) + error(Enodev); if(p->target == CtlrID) return 0x6002;