diff options
-rw-r--r-- | sys/dev/ata/atascsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index dbd96b6376e..bc104a7b2d6 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.7 2007/02/19 12:06:16 dlg Exp $ */ +/* $OpenBSD: atascsi.c,v 1.8 2007/02/28 13:23:23 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -112,7 +112,7 @@ atascsi_attach(struct device *self, struct atascsi_attach_args *aaa) as->as_ports = malloc(sizeof(struct ata_port *) * aaa->aaa_nports, M_DEVBUF, M_WAITOK); - bzero(as->as_ports, sizeof(int) * aaa->aaa_nports); + bzero(as->as_ports, sizeof(struct ata_port *) * aaa->aaa_nports); /* fill in the port array with the type of devices there */ for (i = 0; i < as->as_link.adapter_buswidth; i++) |