[rtems commit] bsp/atsam: Fix mbuf allocation
Sebastian Huber
sebh at rtems.org
Fri Apr 1 07:11:17 UTC 2016
Module: rtems
Branch: master
Commit: d2c8693e15723eab0d1db40df52baf7a82c68782
Changeset: http://git.rtems.org/rtems/commit/?id=d2c8693e15723eab0d1db40df52baf7a82c68782
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Apr 1 08:33:29 2016 +0200
bsp/atsam: Fix mbuf allocation
---
c/src/lib/libbsp/arm/atsam/network/if_atsam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/arm/atsam/network/if_atsam.c b/c/src/lib/libbsp/arm/atsam/network/if_atsam.c
index 9b35fc4..c738ee3 100644
--- a/c/src/lib/libbsp/arm/atsam/network/if_atsam.c
+++ b/c/src/lib/libbsp/arm/atsam/network/if_atsam.c
@@ -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 {
More information about the vc
mailing list