summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2012-10-08 13:01:22 +0000
committerjsing <jsing@openbsd.org>2012-10-08 13:01:22 +0000
commit679af10166262c6e1631632cb0fe1b4c4d985569 (patch)
tree28decb0974a723718a817ac54876f7a8babdeb3a /sys/dev/softraid.c
parentAvoid accessing .data or .bss from real mode, since they may not be within (diff)
downloadwireguard-openbsd-679af10166262c6e1631632cb0fe1b4c4d985569.tar.xz
wireguard-openbsd-679af10166262c6e1631632cb0fe1b4c4d985569.zip
bzero the right variable.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 23cfad272b1..e54dcc02c85 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.274 2012/01/30 13:13:03 jsing Exp $ */
+/* $OpenBSD: softraid.c,v 1.275 2012/10/08 13:01:22 jsing Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1362,7 +1362,7 @@ sr_boot_assembly(struct sr_softc *sc)
*/
SLIST_FOREACH(bv, &bvh, sbv_link) {
- bzero(&bc, sizeof(bc));
+ bzero(&bcr, sizeof(bcr));
/* Check if this is a hotspare "volume". */
if (bv->sbv_level == SR_HOTSPARE_LEVEL &&