diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-03-22 06:17:01 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-03-22 06:17:01 +0000 |
commit | e27f30f6a4243270d507a00c1b121a12aea015e3 (patch) | |
tree | 60f6c5f4ebcbfd9d168dc7c83b4894f8dbef12d8 /sys/kern | |
parent | e28c9f722e2219001a3d6a22955689b3eafcceab (diff) |
dont mix up the len and flats argument to MCLGETI in m_dup_pkt
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 147fc1c2db9..a7ad04b8224 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.219 2016/02/23 01:39:14 dlg Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.220 2016/03/22 06:17:00 dlg Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -1231,7 +1231,7 @@ m_dup_pkt(struct mbuf *m0, unsigned int adj, int wait) goto fail; if (len > MHLEN) { - MCLGETI(m, len, NULL, wait); + MCLGETI(m, wait, NULL, len); if (!ISSET(m->m_flags, M_EXT)) goto fail; } |