summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_socket.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-20 08:32:36 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-20 08:32:36 +0000
commita5292df8d988d051ca2f754bcabf86b067506d11 (patch)
tree3bdc7dd66937f96678503ae553b9272beb73bfca /sys/nfs/nfs_socket.c
parent80895d5a32e630a8c3cb6116294410c1ceb45037 (diff)
tdbi->tags cleanups
Diffstat (limited to 'sys/nfs/nfs_socket.c')
-rw-r--r--sys/nfs/nfs_socket.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index 2d8433eed5e..d42f5d54b74 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.20 2001/03/28 20:03:08 angelos Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.21 2001/05/20 08:32:35 angelos Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -1515,11 +1515,8 @@ nfs_realign(m, hsiz)
olen = m->m_len;
fcp = mtod(m, caddr_t);
if ((long)fcp & 0x3) {
- if (m->m_flags & M_PKTHDR) {
- if (m->m_pkthdr.tdbi) /* XXX */
- free(m->m_pkthdr.tdbi, M_TEMP);
- m->m_pkthdr.tdbi = NULL;
- }
+ if (m->m_flags & M_PKTHDR)
+ m_tag_delete_chain(m, NULL);
m->m_flags &= ~M_PKTHDR;
if (m->m_flags & M_EXT)
m->m_data = m->m_ext.ext_buf +
@@ -1540,19 +1537,12 @@ nfs_realign(m, hsiz)
if (olen <= hsiz && mlen > hsiz)
mlen = hsiz;
- /*
- * Loop through the mbuf list consolidating data.
- */
+ /* Loop through the mbuf list consolidating data. */
while (m) {
while (olen > 0) {
if (mlen == 0) {
- if (m2->m_flags & M_PKTHDR) {
- /* XXX */
- if (m2->m_pkthdr.tdbi)
- free(m2->m_pkthdr.tdbi,
- M_TEMP);
- m2->m_pkthdr.tdbi = NULL;
- }
+ if (m2->m_flags & M_PKTHDR)
+ m_tag_delete_chain(m2, NULL);
m2->m_flags &= ~M_PKTHDR;
if (m2->m_flags & M_EXT)
m2->m_data = m2->m_ext.ext_buf;