diff options
author | julian <julian@FreeBSD.org> | 1995-12-05 07:14:27 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-12-05 07:14:27 +0000 |
commit | ac8328a67ce4ce3dfa1e5fed229411aba2e40c8b (patch) | |
tree | e28bc3b27485a2ac2b7a2f96336d530f975790ed /sys/scsi/scsi_driver.c | |
parent | 94363a94a157f6a16d2349e5afddda7f1c94f77a (diff) | |
download | FreeBSD-src-ac8328a67ce4ce3dfa1e5fed229411aba2e40c8b.zip FreeBSD-src-ac8328a67ce4ce3dfa1e5fed229411aba2e40c8b.tar.gz |
fix a couple of stuffups in the worm driver and in other associated scsi files
Diffstat (limited to 'sys/scsi/scsi_driver.c')
-rw-r--r-- | sys/scsi/scsi_driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/scsi_driver.c b/sys/scsi/scsi_driver.c index a49da2c..5db60ca 100644 --- a/sys/scsi/scsi_driver.c +++ b/sys/scsi/scsi_driver.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_driver.c,v 1.10 1995/05/30 08:13:37 rgrimes Exp $ + * $Id: scsi_driver.c,v 1.11 1995/12/05 04:41:20 julian Exp $ * */ #include <sys/types.h> @@ -54,7 +54,8 @@ #include <scsi/scsi_driver.h> #define GETUNIT(DEVICE, DEV) \ - ((DEVICE)->getunit) ? (*(DEVICE)->getunit)((DEV)) : minor((DEV)) + ((DEVICE)->getunit) ? (*(DEVICE)->getunit)((DEV)) \ + : (minor((DEV)) & ~SCSI_CONTROL_MASK) int scsi_goaway(struct kern_devconf *kdc, int force) /* XXX should do a lot more */ |