Module Name:    src
Committed By:   maxv
Date:           Thu Apr 26 19:27:04 UTC 2018

Modified Files:
        src/sys/fs/nfs/common: nfs_commonsubs.c

Log Message:
Fix inverted arguments in MGET().


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/fs/nfs/common/nfs_commonsubs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/nfs/common/nfs_commonsubs.c
diff -u src/sys/fs/nfs/common/nfs_commonsubs.c:1.2 src/sys/fs/nfs/common/nfs_commonsubs.c:1.3
--- src/sys/fs/nfs/common/nfs_commonsubs.c:1.2	Tue Dec 13 22:31:51 2016
+++ src/sys/fs/nfs/common/nfs_commonsubs.c	Thu Apr 26 19:27:04 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_commonsubs.c,v 1.2 2016/12/13 22:31:51 pgoyette Exp $	*/
+/*	$NetBSD: nfs_commonsubs.c,v 1.3 2018/04/26 19:27:04 maxv Exp $	*/
 /*-
  * Copyright (c) 1989, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("FreeBSD: head/sys/fs/nfs/nfs_commonsubs.c 308708 2016-11-16 01:11:49Z cperciva "); */
-__RCSID("$NetBSD: nfs_commonsubs.c,v 1.2 2016/12/13 22:31:51 pgoyette Exp $");
+__RCSID("$NetBSD: nfs_commonsubs.c,v 1.3 2018/04/26 19:27:04 maxv Exp $");
 
 /*
  * These functions support the macros and help fiddle mbuf chains for
@@ -309,7 +309,7 @@ nfsm_dissct(struct nfsrv_descript *nd, i
 	} else if (siz > ncl_mbuf_mhlen) {
 		panic("nfs S too big");
 	} else {
-		MGET(mp2, MT_DATA, how);
+		MGET(mp2, how, MT_DATA);
 		if (mp2 == NULL)
 			return (NULL);
 		mbuf_setnext(mp2, mbuf_next(nd->nd_md));

Reply via email to