summaryrefslogtreecommitdiff
path: root/sys/dev/isa/seagate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/seagate.c')
-rw-r--r--sys/dev/isa/seagate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/isa/seagate.c b/sys/dev/isa/seagate.c
index 0804e054dd0..a81066e098f 100644
--- a/sys/dev/isa/seagate.c
+++ b/sys/dev/isa/seagate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: seagate.c,v 1.21 2007/06/29 15:17:02 jasper Exp $ */
+/* $OpenBSD: seagate.c,v 1.22 2007/10/01 15:34:48 krw Exp $ */
/*
* ST01/02, Future Domain TMC-885, TMC-950 SCSI driver
@@ -624,10 +624,8 @@ sea_get_scb(struct sea_softc *sea, int flags)
break;
}
if (sea->numscbs < SEA_SCB_MAX) {
- scb = (struct sea_scb *) malloc(sizeof(struct sea_scb),
- M_TEMP, M_NOWAIT);
+ scb = malloc(sizeof(*scb), M_TEMP, M_NOWAIT | M_ZERO);
if (scb) {
- bzero(scb, sizeof(struct sea_scb));
sea->numscbs++;
} else
printf("%s: can't malloc scb\n",