summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-19 18:37:21 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-19 18:37:21 +0000
commit79088da7ddc4b579c58e896495ea570cf87c177e (patch)
treef6902312b971d7256fd36d95990abaf5bde40ec7 /sys
parentaa662b9a3a546aa2068aa7f51740d50cff2fbcd2 (diff)
Make sure we pass the right argument to isp_wdog() when setting timeouts.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/isp_openbsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c
index 02369781da5..b732a6aeb8d 100644
--- a/sys/dev/ic/isp_openbsd.c
+++ b/sys/dev/ic/isp_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp_openbsd.c,v 1.31 2008/01/21 20:00:33 sobrado Exp $ */
+/* $OpenBSD: isp_openbsd.c,v 1.32 2008/03/19 18:37:20 kettenis Exp $ */
/*
* Platform (OpenBSD) dependent common attachment code for QLogic adapters.
*
@@ -299,7 +299,7 @@ ispcmd(XS_T *xs)
*/
isp = XS_ISP(xs);
- timeout_set(&xs->stimeout, isp_wdog, isp);
+ timeout_set(&xs->stimeout, isp_wdog, xs);
if (XS_LUN(xs) >= isp->isp_maxluns) {
xs->error = XS_SELTIMEOUT;
@@ -597,7 +597,7 @@ isp_requeue(void *arg)
isp_prt(isp, ISP_LOGDEBUG1, "restarted command for %d.%d",
XS_TGT(xs), XS_LUN(xs));
if (xs->timeout) {
- timeout_set(&xs->stimeout, isp_wdog, isp);
+ timeout_set(&xs->stimeout, isp_wdog, xs);
timeout_add(&xs->stimeout, _XT(xs));
XS_CMD_S_TIMER(xs);
}