git: 440217b0af5f - main - debugnet: Fix parameter order in the calls to m_get()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Sep 2022 11:05:04 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=440217b0af5ffa08086829f5902b01a92e7a6790 commit 440217b0af5ffa08086829f5902b01a92e7a6790 Author: Zhenlei Huang <zlei.huang@gmail.com> AuthorDate: 2022-09-21 10:55:20 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-09-21 10:55:20 +0000 debugnet: Fix parameter order in the calls to m_get() Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36643 --- sys/kern/kern_mbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index a302545192fe..d47b1fbf3c60 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -478,7 +478,7 @@ dn_pack_import(void *arg __unused, void **store, int count, int domain __unused, int i; for (i = 0; i < count; i++) { - m = m_get(MT_DATA, M_NOWAIT); + m = m_get(M_NOWAIT, MT_DATA); if (m == NULL) break; clust = uma_zalloc(dn_zone_clust, M_NOWAIT); @@ -621,7 +621,7 @@ debugnet_mbuf_reinit(int nmbuf, int nclust, int clsize) NULL, UMA_ZONE_NOBUCKET); while (nmbuf-- > 0) { - m = m_get(MT_DATA, M_WAITOK); + m = m_get(M_WAITOK, MT_DATA); uma_zfree(dn_zone_mbuf, m); } while (nclust-- > 0) {