bsp/atsam: Fix mbuf allocation

This commit is contained in:
Sebastian Huber
2016-04-01 08:33:29 +02:00
parent 9eaf564d52
commit d2c8693e15

View File

@@ -195,7 +195,7 @@ static struct mbuf *if_atsam_new_mbuf(struct ifnet *ifp)
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m != NULL) {
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_PKTHDR) != 0) {
if ((m->m_flags & M_EXT) != 0) {
m->m_pkthdr.rcvif = ifp;
m->m_data = mtod(m, char *);
} else {