summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-11-18 09:34:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-11-18 09:34:14 +0000
commit1dd20777eb36ea11a7900d6035143d1692c623c5 (patch)
tree5ab9d733b69796fc7da5dc3d91022aa3c9ef5236 /sys/arch/mvme88k
parent9f60f1cbda12a2bb5e26a1b520ef1b5f9b2dc9c7 (diff)
In ssh_checkintr(), better check pointers for NULL before they
are dereferenced. XXX Looks like there are duplicated sections in this function. This driver needs a huge cleanup anyway...
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/dev/ssh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/ssh.c b/sys/arch/mvme88k/dev/ssh.c
index e3031e38262..fa8fee9c051 100644
--- a/sys/arch/mvme88k/dev/ssh.c
+++ b/sys/arch/mvme88k/dev/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.16 2003/10/05 20:27:48 miod Exp $ */
+/* $OpenBSD: ssh.c,v 1.17 2003/11/18 09:34:13 miod Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -1125,7 +1125,8 @@ ssh_checkintr(sc, istat, dstat, sstat0, status)
}
#endif
*status = -1;
- acb->xs->error = XS_SELTIMEOUT;
+ if (acb != NULL)
+ acb->xs->error = XS_SELTIMEOUT;
if (sc->nexus_list.tqh_first)
rp->ssh_dsp = sc->sc_scriptspa + Ent_wait_reselect;
return 1;