From 581997379c69e168d18d780cc5aef4255be4e3fb Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 1 Jun 1996 12:18:31 +0000 Subject: do not access sc_link before set --- sys/dev/isa/aha.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/isa') 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? -- cgit v1.2.3