summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-02 20:59:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-02 20:59:56 +0000
commit75270b2b75b8e388dd304825984881c35c219bc7 (patch)
tree57fcfdf60ffaa4720ef624ed189013ee1daa59aa /sys
parent90bbf5b1dcb24f710fbe72def45392a7511bf22c (diff)
When an NFS3 server replies with NFS3ERR_JUKEBOX, currently, it
panics the kernel, because the kernel tries to reuse a freed mbuf; dm@reeducation-labor.lcs.mit.edu
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_socket.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index fe77781da2d..7e5c6540813 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.14 1999/02/06 23:07:44 millert Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.15 1999/03/02 20:59:55 millert Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -928,8 +928,9 @@ tryagain:
if (nmp->nm_soflags & PR_CONNREQUIRED)
error = nfs_sndlock(&nmp->nm_flag, rep);
if (!error) {
- m = m_copym(m, 0, M_COPYALL, M_WAIT);
- error = nfs_send(nmp->nm_so, nmp->nm_nam, m, rep);
+ error = nfs_send(nmp->nm_so, nmp->nm_nam,
+ m_copym(m, 0, M_COPYALL, M_WAIT),
+ rep);
if (nmp->nm_soflags & PR_CONNREQUIRED)
nfs_sndunlock(&nmp->nm_flag);
}