diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index bc6aa71e683c..c94558f4ef4d 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)); } /*