-/* $OpenBSD: diskprobe.c,v 1.21 2017/11/06 08:57:34 yasuoka Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.22 2017/12/18 12:53:33 fcambus Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
if (debug)
printf(" <!fd%u>", i);
#endif
- free(dip, 0);
+ free(dip, sizeof(*dip));
break;
}
if (debug)
printf(" <!hd%u>", i&0x7f);
#endif
- free(dip, 0);
+ free(dip, sizeof(*dip));
break;
}
#if 0
if (bios_getdiskinfo(cddev, &dip->bios_info)) {
printf(" <!cd0>"); /* XXX */
- free(dip, 0);
+ free(dip, sizeof(*dip));
return;
}
#endif
-/* $OpenBSD: softraid_amd64.c,v 1.4 2017/01/05 11:18:54 stsp Exp $ */
+/* $OpenBSD: softraid_amd64.c,v 1.5 2017/12/18 12:53:33 fcambus Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
}
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
- free(md, 0);
+ free(md, SR_META_SIZE * DEV_BSIZE);
}
int
-/* $OpenBSD: diskprobe.c,v 1.44 2017/07/21 01:21:42 yasuoka Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.45 2017/12/18 12:53:33 fcambus Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
if (debug)
printf(" <!fd%u>", i);
#endif
- free(dip, 0);
+ free(dip, sizeof(*dip));
break;
}
if (debug)
printf(" <!hd%u>", i&0x7f);
#endif
- free(dip, 0);
+ free(dip, sizeof(*dip));
break;
}
#if 0
if (bios_getdiskinfo(cddev, &dip->bios_info)) {
printf(" <!cd0>"); /* XXX */
- free(dip, 0);
+ free(dip, sizeof(*dip));
return;
}
#endif
-/* $OpenBSD: softraid_i386.c,v 1.2 2016/09/11 17:52:47 jsing Exp $ */
+/* $OpenBSD: softraid_i386.c,v 1.3 2017/12/18 12:53:33 fcambus Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
}
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
- free(md, 0);
+ free(md, SR_META_SIZE * DEV_BSIZE);
}
int