summaryrefslogtreecommitdiff
path: root/sys/dev/isa/aha.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-01 12:18:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-01 12:18:31 +0000
commit581997379c69e168d18d780cc5aef4255be4e3fb (patch)
tree27a829cdac436af7241ccdac6930672061e79478 /sys/dev/isa/aha.c
parentbbdf45e49a84a1d3af9ee1cc6379177ad2ca83b4 (diff)
do not access sc_link before set
Diffstat (limited to 'sys/dev/isa/aha.c')
-rw-r--r--sys/dev/isa/aha.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c
index 34443d22b77..a8a8aae7ffb 100644
--- a/sys/dev/isa/aha.c
+++ b/sys/dev/isa/aha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha.c,v 1.22 1996/05/31 10:57:04 deraadt Exp $ */
+/* $OpenBSD: aha.c,v 1.23 1996/06/01 12:18:30 deraadt Exp $ */
/* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */
#define AHADIAG
@@ -1361,15 +1361,15 @@ aha_timeout(arg)
struct aha_softc *sc;
int s;
- sc_print_addr(sc_link);
- printf("timed out");
-
s = splbio();
isadma_copyfrombuf((caddr_t)ccb, CCB_PHYS_SIZE, 1, ccb->ccb_phys);
xs = ccb->xs;
sc_link = xs->sc_link;
sc = sc_link->adapter_softc;
+ sc_print_addr(sc_link);
+ printf("timed out");
+
#ifdef AHADIAG
/*
* If The ccb's mbx is not free, then the board has gone south?