summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2003-03-13 09:02:19 +0000
committeriedowse <iedowse@FreeBSD.org>2003-03-13 09:02:19 +0000
commitdb8dd4828ee970c67c5e073b35c7cec89d491ecf (patch)
tree8b56b621f65c2ef89f5e7c415831ad38d1744988 /sys/kern/uipc_mbuf.c
parent3b7d0bb30687ca4c1c31e721b174ec300b9352a9 (diff)
downloadFreeBSD-src-db8dd4828ee970c67c5e073b35c7cec89d491ecf.zip
FreeBSD-src-db8dd4828ee970c67c5e073b35c7cec89d491ecf.tar.gz
In m_dup_pkthdr(), convert the supplied `how' argument into malloc
flags when passing it into m_tag_copy_chain(), as m_tag* functions use malloc, not mbuf flags.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index bc6aa71..c94558f 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -129,7 +129,8 @@ m_dup_pkthdr(struct mbuf *to, struct mbuf *from, int how)
mac_create_mbuf_from_mbuf(from, to);
#endif
SLIST_INIT(&to->m_pkthdr.tags);
- return (m_tag_copy_chain(to, from, how));
+ return (m_tag_copy_chain(to, from, (how & M_TRYWAIT) ? M_WAITOK :
+ M_NOWAIT));
}
/*
OpenPOWER on IntegriCloud