summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-01-21 00:48:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-01-21 00:48:56 +0000
commit9f1fa6ff73a20a47619bb24c297e4d3ed750834b (patch)
tree736bbb6b882d1f29ff0743e36f93fadf25efd818 /sys/dev
parent44d161e911a3935109592f442657512a1a84a3d8 (diff)
bzero() siop_target structure after malloc().
In combination with previous openings fix makes Niklas happy. Probably fixes some negotiation bugs too. Another good candidate for -stable.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/siop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c
index f93f16df9c8..ebbf44d1af8 100644
--- a/sys/dev/ic/siop.c
+++ b/sys/dev/ic/siop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop.c,v 1.24 2002/12/23 00:42:32 krw Exp $ */
+/* $OpenBSD: siop.c,v 1.25 2003/01/21 00:48:55 krw Exp $ */
/* $NetBSD: siop.c,v 1.65 2002/11/08 22:04:41 bouyer Exp $ */
/*
@@ -1333,6 +1333,7 @@ siop_scsicmd(xs)
splx(s);
return(TRY_AGAIN_LATER);
}
+ bzero(sc->sc_c.targets[target], sizeof(struct siop_target));
siop_target =
(struct siop_target*)sc->sc_c.targets[target];
siop_target->target_c.status = TARST_PROBING;