mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
correct two more flag misuses; m_tag* use malloc flags
This commit is contained in:
parent
8abe8104f3
commit
4a692a1fc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112148
@ -323,7 +323,7 @@ vlan_start(struct ifnet *ifp)
|
||||
struct m_tag *mtag = m_tag_alloc(MTAG_VLAN,
|
||||
MTAG_VLAN_TAG,
|
||||
sizeof (u_int),
|
||||
M_DONTWAIT);
|
||||
M_NOWAIT);
|
||||
if (mtag == NULL) {
|
||||
ifp->if_oerrors++;
|
||||
m_freem(m);
|
||||
|
@ -487,7 +487,7 @@ encap_fillarg(m, ep)
|
||||
{
|
||||
struct m_tag *tag;
|
||||
|
||||
tag = m_tag_get(PACKET_TAG_ENCAP, sizeof (void*), M_DONTWAIT);
|
||||
tag = m_tag_get(PACKET_TAG_ENCAP, sizeof (void*), M_NOWAIT);
|
||||
if (tag) {
|
||||
*(void**)(tag+1) = ep->arg;
|
||||
m_tag_prepend(m, tag);
|
||||
|
Loading…
Reference in New Issue
Block a user