summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2008-10-28 11:27:53 +0000
committermarco <marco@openbsd.org>2008-10-28 11:27:53 +0000
commit696a249da7aee455c48eb2f0ec348d2894318db5 (patch)
tree819f5360f6000eaf6c8edd339555b0a286b0d100
parentAdd beginings of bio. Disabled for now. (diff)
downloadwireguard-openbsd-696a249da7aee455c48eb2f0ec348d2894318db5.tar.xz
wireguard-openbsd-696a249da7aee455c48eb2f0ec348d2894318db5.zip
Pointer sizeof oops
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 232df036827..eeffe1663aa 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.99 2008/10/28 11:00:40 marco Exp $ */
+/* $OpenBSD: mpi.c,v 1.100 2008/10/28 11:27:53 marco Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -2683,7 +2683,7 @@ mpi_ioctl_vol(struct mpi_softc *sc, struct bioc_vol *bv)
if (id > sc->sc_vol_page->active_vols)
return (EINVAL); /* XXX deal with hot spares */
- len = sizeof(rpg0) + sc->sc_vol_page->max_physdisks * sizeof(physdisk);
+ len = sizeof *rpg0 + sc->sc_vol_page->max_physdisks * sizeof *physdisk;
rpg0 = malloc(len, M_TEMP, M_WAITOK | M_CANFAIL);
if (rpg0 == NULL) {
printf("%s: can't get memory for RAID page 0, "