diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-03-26 00:04:52 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-03-26 00:04:52 +0000 |
commit | 5e9ea134af3890e3042b743370bfd71b9d5ff976 (patch) | |
tree | ff7fa7b5d4c64c540132b293ba05296e8a24006f /sys/arch/mvme88k | |
parent | c49c4cae05c54580709aba6ae8149776ab11dd04 (diff) |
Do not dereference pointers before checking whether they are valid (triple sigh).
ok deraadt@
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/dev/ssh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/ssh.c b/sys/arch/mvme88k/dev/ssh.c index 92330c2dbb0..0512b281923 100644 --- a/sys/arch/mvme88k/dev/ssh.c +++ b/sys/arch/mvme88k/dev/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.25 2004/03/04 23:02:23 miod Exp $ */ +/* $OpenBSD: ssh.c,v 1.26 2004/03/26 00:04:51 miod Exp $ */ /* * Copyright (c) 1994 Michael L. Hitch @@ -573,9 +573,9 @@ ssh_scsidone(acb, stat) struct ssh_acb *acb; int stat; { - struct scsi_xfer *xs = acb->xs; - struct scsi_link *slp = xs->sc_link; - struct ssh_softc *sc = slp->adapter_softc; + struct scsi_xfer *xs; + struct scsi_link *slp; + struct ssh_softc *sc; int dosched = 0; if (acb == NULL || (xs = acb->xs) == NULL) { |