summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-11-23 08:55:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-11-23 08:55:36 +0000
commita224e2c56ccb4f022f22898222ee5f8aa5e423e0 (patch)
tree74474eea4976b50503ae44548b90ce1322647abf /sys/dev
parent8aafc33162cd30ca331dae1c82c95f18e813fda2 (diff)
fix lun support, not as nice as i would like
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/umass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 150d93f35fc..fa252a0d9ba 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass.c,v 1.7 2000/11/20 07:34:51 deraadt Exp $ */
+/* $OpenBSD: umass.c,v 1.8 2000/11/23 08:55:34 deraadt Exp $ */
/* $NetBSD: umass.c,v 1.33 2000/04/06 13:52:04 augustss Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>,
@@ -1084,7 +1084,7 @@ USB_ATTACH(umass)
sc->u.sc_link.adapter_buswidth = 2;
sc->u.sc_link.adapter_target = UMASS_SCSIID_HOST;
- sc->u.sc_link.maxlun = sc->maxlun;
+ sc->u.sc_link.luns = sc->maxlun + 1;
#endif
sc->u.sc_link.adapter_softc = sc;