summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsiconf.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-11-25 22:28:53 +0000
committerdlg <dlg@openbsd.org>2007-11-25 22:28:53 +0000
commit1ffb82a3870ed59c4859cd3ca3324ae0fcada90c (patch)
tree044316f05c89c762da3b7c6b46dcacae48fffc1c /sys/scsi/scsiconf.c
parentsyc (diff)
downloadwireguard-openbsd-1ffb82a3870ed59c4859cd3ca3324ae0fcada90c.tar.xz
wireguard-openbsd-1ffb82a3870ed59c4859cd3ca3324ae0fcada90c.zip
dont use the adapter_softc member of scsi_link as a softc anymore. the
"adapter_softc" is simply a way for the adapter to determine what scsibus it is now dealing with, not a pointer back to the adapters device struct. ok deraadt@ marco@
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r--sys/scsi/scsiconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index b2c4e367216..101228588d6 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.127 2007/11/06 02:49:19 krw Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.128 2007/11/25 22:28:54 dlg Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -149,6 +149,7 @@ scsibusattach(struct device *parent, struct device *self, void *aux)
if (!cold)
scsi_autoconf = 0;
+ sc_link_proto->bus = sb;
sc_link_proto->scsibus = sb->sc_dev.dv_unit;
sb->adapter_link = sc_link_proto;
if (sb->adapter_link->adapter_buswidth == 0)