git: 85b7031febb4 - stable/12 - nfscl: Fix parameter order in the calls to MGET().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Oct 2022 00:04:54 UTC
The branch stable/12 has been updated by rmacklem:
URL: https://cgit.FreeBSD.org/src/commit/?id=85b7031febb4e308cd7dd94462c4db475195cd9d
commit 85b7031febb4e308cd7dd94462c4db475195cd9d
Author: Zhenlei Huang <zlei.huang@gmail.com>
AuthorDate: 2022-09-23 21:04:36 +0000
Commit: Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2022-10-07 00:01:13 +0000
nfscl: Fix parameter order in the calls to MGET().
(cherry picked from commit 8b43388c745ebb42414496f2925f47acac662c2f)
---
sys/fs/nfs/nfs_commonsubs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c
index 3ccfb6cce0d2..634e76ecbd2e 100644
--- a/sys/fs/nfs/nfs_commonsubs.c
+++ b/sys/fs/nfs/nfs_commonsubs.c
@@ -679,7 +679,7 @@ nfsm_dissct(struct nfsrv_descript *nd, int siz, int how)
} 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));