diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:44:44 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:44:44 +0000 |
commit | 48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (patch) | |
tree | 29d721c60c102e5fb6ed78e8ad45bbda321c951f /sys/arch/amd64/stand | |
parent | a29a93ecbd0d69878182d5959b330ae5badcadc7 (diff) |
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r-- | sys/arch/amd64/stand/libsa/diskprobe.c | 8 | ||||
-rw-r--r-- | sys/arch/amd64/stand/libsa/softraid.c | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/amd64/stand/libsa/diskprobe.c b/sys/arch/amd64/stand/libsa/diskprobe.c index 50062579d5d..7a64b298ca6 100644 --- a/sys/arch/amd64/stand/libsa/diskprobe.c +++ b/sys/arch/amd64/stand/libsa/diskprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskprobe.c,v 1.13 2013/11/05 00:51:58 krw Exp $ */ +/* $OpenBSD: diskprobe.c,v 1.14 2014/07/12 18:44:41 tedu Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -79,7 +79,7 @@ floppyprobe(void) if (debug) printf(" <!fd%u>", i); #endif - free(dip, 0); + free(dip, 0, 0); break; } @@ -122,7 +122,7 @@ hardprobe(void) if (debug) printf(" <!hd%u>", i&0x7f); #endif - free(dip, 0); + free(dip, 0, 0); break; } @@ -234,7 +234,7 @@ cdprobe(void) #if 0 if (bios_getdiskinfo(cddev, &dip->bios_info)) { printf(" <!cd0>"); /* XXX */ - free(dip, 0); + free(dip, 0, 0); return; } #endif diff --git a/sys/arch/amd64/stand/libsa/softraid.c b/sys/arch/amd64/stand/libsa/softraid.c index 5c7f9b3104e..15679a72b35 100644 --- a/sys/arch/amd64/stand/libsa/softraid.c +++ b/sys/arch/amd64/stand/libsa/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.6 2013/12/28 02:40:41 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.7 2014/07/12 18:44:41 tedu Exp $ */ /* * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> @@ -315,7 +315,7 @@ srprobe(void) } explicit_bzero(md, SR_META_SIZE * 512); - free(md, 0); + free(md, 0, 0); } int @@ -477,18 +477,18 @@ sr_clear_keys(void) continue; if (bv->sbv_keys != NULL) { explicit_bzero(bv->sbv_keys, SR_CRYPTO_KEYBLOCK_BYTES); - free(bv->sbv_keys, 0); + free(bv->sbv_keys, 0, 0); bv->sbv_keys = NULL; } if (bv->sbv_maskkey != NULL) { explicit_bzero(bv->sbv_maskkey, SR_CRYPTO_MAXKEYBYTES); - free(bv->sbv_maskkey, 0); + free(bv->sbv_maskkey, 0, 0); bv->sbv_maskkey = NULL; } } SLIST_FOREACH(kd, &sr_keydisks, kd_link) { explicit_bzero(kd, sizeof(*kd)); - free(kd, 0); + free(kd, 0, 0); } } @@ -618,7 +618,7 @@ done: if (keys != NULL && rv != 0) { explicit_bzero(keys, SR_CRYPTO_KEYBLOCK_BYTES); - free(keys, 0); + free(keys, 0, 0); } return (rv); |