Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs Don't use MALLOC for variable sized allocat...
details: https://anonhg.NetBSD.org/src/rev/7136a41edbd4
branches: trunk
changeset: 522487:7136a41edbd4
user: enami <enami%NetBSD.org@localhost>
date: Wed Feb 20 06:16:22 2002 +0000
description:
Don't use MALLOC for variable sized allocation.
diffstat:
sys/miscfs/genfs/layer_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 756c87d78a57 -r 7136a41edbd4 sys/miscfs/genfs/layer_subr.c
--- a/sys/miscfs/genfs/layer_subr.c Wed Feb 20 04:13:56 2002 +0000
+++ b/sys/miscfs/genfs/layer_subr.c Wed Feb 20 06:16:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: layer_subr.c,v 1.10 2001/11/15 09:48:21 lukem Exp $ */
+/* $NetBSD: layer_subr.c,v 1.11 2002/02/20 06:16:22 enami Exp $ */
/*
* Copyright (c) 1999 National Aeronautics & Space Administration
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: layer_subr.c,v 1.10 2001/11/15 09:48:21 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: layer_subr.c,v 1.11 2002/02/20 06:16:22 enami Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -198,7 +198,7 @@
vp->v_type = lowervp->v_type;
vp->v_flag |= VLAYER;
- MALLOC(xp, struct layer_node *, lmp->layerm_size, M_TEMP, M_WAITOK);
+ xp = malloc(lmp->layerm_size, M_TEMP, M_WAITOK);
if (vp->v_type == VBLK || vp->v_type == VCHR) {
MALLOC(vp->v_specinfo, struct specinfo *,
sizeof(struct specinfo), M_VNODE, M_WAITOK);
Home |
Main Index |
Thread Index |
Old Index