summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 9caeed9..55d828d 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -140,8 +140,7 @@ 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 & M_TRYWAIT) ? M_WAITOK :
- M_NOWAIT));
+ return (m_tag_copy_chain(to, from, MBTOM(how)));
}
/*
OpenPOWER on IntegriCloud