summaryrefslogtreecommitdiffstats
path: root/sys/netatm/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netatm/port.h')
-rw-r--r--sys/netatm/port.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h
index 911f9a2..a9daf4b 100644
--- a/sys/netatm/port.h
+++ b/sys/netatm/port.h
@@ -274,10 +274,12 @@ typedef struct mbuf KBuffer;
(prev)->m_next = (new); \
}
#define KB_UNLINKHEAD(head, next) { \
- MFREE((head), (next)); \
+ (next) = m_free((head)); \
+ (head) = NULL; \
}
#define KB_UNLINK(old, prev, next) { \
- MFREE((old), (next)); \
+ (next) = m_free((old)); \
+ (old) = NULL; \
(prev)->m_next = (next); \
}
#define KB_ISPKT(bfr) (((bfr)->m_flags & M_PKTHDR) != 0)
@@ -407,10 +409,12 @@ typedef struct mbuf KBuffer;
(prev)->m_next = (new); \
}
#define KB_UNLINKHEAD(head, next) { \
- MFREE((head), (next)); \
+ (next) = m_free((head)); \
+ (head) = NULL; \
}
#define KB_UNLINK(old, prev, next) { \
- MFREE((old), (next)); \
+ (next) = m_free((old)); \
+ (old) = NULL; \
(prev)->m_next = (next); \
}
#define KB_ISPKT(bfr) (0)
OpenPOWER on IntegriCloud