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.
This commit is contained in:
parent
64eca1e1f2
commit
a80cc4e104
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user