summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2015-06-30 17:19:58 +0000
committernp <np@FreeBSD.org>2015-06-30 17:19:58 +0000
commita503d4a154104ab423b21d9677afa7923122f4f5 (patch)
tree6f19faa9ca7b7f1a889c4544f7be487af0765fc7 /sys/sys/mbuf.h
parent8b5b408c2c62fe7ff51161d7e59c3d1798f71834 (diff)
downloadFreeBSD-src-a503d4a154104ab423b21d9677afa7923122f4f5.zip
FreeBSD-src-a503d4a154104ab423b21d9677afa7923122f4f5.tar.gz
Fix leak in tcp_lro_rx. Simply clearing M_PKTHDR isn't enough, any tags
hanging off the header need to be freed too. Differential Revision: https://reviews.freebsd.org/D2708 Reviewed by: ae@, hiren@
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index ab06547..3d5a7c1 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -959,6 +959,7 @@ struct mbuf *m_copypacket(struct mbuf *, int);
void m_copy_pkthdr(struct mbuf *, struct mbuf *);
struct mbuf *m_copyup(struct mbuf *, int, int);
struct mbuf *m_defrag(struct mbuf *, int);
+void m_demote_pkthdr(struct mbuf *);
void m_demote(struct mbuf *, int, int);
struct mbuf *m_devget(char *, int, int, struct ifnet *,
void (*)(char *, caddr_t, u_int));
OpenPOWER on IntegriCloud