diff options
| author | 2011-07-17 22:46:47 +0000 | |
|---|---|---|
| committer | 2011-07-17 22:46:47 +0000 | |
| commit | 3ba30b1bc6606186b78adb0373ac3c83c82ed540 (patch) | |
| tree | 5d0a100ee78cd2f1a9e8639fa58a1de99d475bfb /sys/dev/ic/mpi.c | |
| parent | Fix an integer overflow for very long lines by replacing the datatype of 2 offsets from int to regoff_t. (diff) | |
| download | wireguard-openbsd-3ba30b1bc6606186b78adb0373ac3c83c82ed540.tar.xz wireguard-openbsd-3ba30b1bc6606186b78adb0373ac3c83c82ed540.zip | |
Backout a bunch of my SCSI commits from c2k11. At least one of these
is causing problems when trying to boot sparc64 from an isp(4).
Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
Diffstat (limited to 'sys/dev/ic/mpi.c')
| -rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 75fec2e2334..b4d244fd00f 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.173 2011/07/08 22:09:27 matthew Exp $ */ +/* $OpenBSD: mpi.c,v 1.174 2011/07/17 22:46:48 matthew Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -344,12 +344,12 @@ mpi_attach(struct mpi_softc *sc) sc->sc_link.adapter = &mpi_switch; sc->sc_link.adapter_softc = sc; sc->sc_link.adapter_target = sc->sc_target; + sc->sc_link.adapter_buswidth = sc->sc_buswidth; sc->sc_link.openings = sc->sc_maxcmds / sc->sc_buswidth; sc->sc_link.pool = &sc->sc_iopool; bzero(&saa, sizeof(saa)); saa.saa_sc_link = &sc->sc_link; - saa.saa_targets = sc->sc_buswidth; /* config_found() returns the scsibus attached to us */ sc->sc_scsibus = (struct scsibus_softc *) config_found(&sc->sc_dev, |
