diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-01 15:36:30 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-01 15:36:30 +0000 |
commit | 0631b9f16f5218d1a98d2ce89e3cf0e689ad4837 (patch) | |
tree | 2c486a97feec0de8deb5184bade9d48d834d768d /sys/kern/uipc_mbuf2.c | |
parent | 46af10b8509f4a772a785d809d2b3b697a713dd2 (diff) |
Don't MALLOC/FREE with variable size.
Diffstat (limited to 'sys/kern/uipc_mbuf2.c')
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index eef4191ebd6..20d8f5573c2 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf2.c,v 1.15 2001/06/23 04:39:33 angelos Exp $ */ +/* $OpenBSD: uipc_mbuf2.c,v 1.16 2002/02/01 15:36:29 art Exp $ */ /* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */ @@ -277,8 +277,7 @@ m_tag_get(type, len, wait) if (len < 0) return (NULL); - MALLOC(t, struct m_tag *, len + sizeof(struct m_tag), M_PACKET_TAGS, - wait); + t = malloc(len + sizeof(struct m_tag), M_PACKET_TAGS, wait); if (t == NULL) return (NULL); t->m_tag_id = type; @@ -291,7 +290,7 @@ void m_tag_free(t) struct m_tag *t; { - FREE(t, M_PACKET_TAGS); + free(t, M_PACKET_TAGS); } /* Prepend a packet tag. */ |