diff options
| author | pk <pk@NetBSD.org> | 1995-08-21 09:30:09 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1995-08-21 09:30:09 +0000 |
| commit | d9e37f2bc7cd88ffb021d792e3623ca5eb65cdb7 (patch) | |
| tree | 4398f54585283ca6d6f3110a9361265d60f1b5a8 | |
| parent | e11b690b8053f16596692ab12ee1a56e4775f14d (diff) | |
Set the scsi link before calling config_attach(), so target/lun info is
available to, say, dk_establish().
| -rw-r--r-- | sys/dev/scsipi/scsiconf.c | 4 | ||||
| -rw-r--r-- | sys/scsi/scsiconf.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/scsipi/scsiconf.c b/sys/dev/scsipi/scsiconf.c index 63babfb4d2d..e927991bc92 100644 --- a/sys/dev/scsipi/scsiconf.c +++ b/sys/dev/scsipi/scsiconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsiconf.c,v 1.40 1995/08/14 13:01:42 briggs Exp $ */ +/* $NetBSD: scsiconf.c,v 1.41 1995/08/21 09:30:09 pk Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -502,8 +502,8 @@ scsi_probedev(scsi, target, lun) sa.sa_inqbuf = &inqbuf; if ((cf = config_search(scsibussubmatch, (struct device *)scsi, &sa)) != 0) { - config_attach((struct device *)scsi, cf, &sa, NULL); scsi->sc_link[target][lun] = sc_link; + config_attach((struct device *)scsi, cf, &sa, NULL); } else goto bad; diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 63babfb4d2d..e927991bc92 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsiconf.c,v 1.40 1995/08/14 13:01:42 briggs Exp $ */ +/* $NetBSD: scsiconf.c,v 1.41 1995/08/21 09:30:09 pk Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -502,8 +502,8 @@ scsi_probedev(scsi, target, lun) sa.sa_inqbuf = &inqbuf; if ((cf = config_search(scsibussubmatch, (struct device *)scsi, &sa)) != 0) { - config_attach((struct device *)scsi, cf, &sa, NULL); scsi->sc_link[target][lun] = sc_link; + config_attach((struct device *)scsi, cf, &sa, NULL); } else goto bad; |
