git: 6315a1aac7ac - stable/13 - debugnet: Fix parameter order in the calls to m_get()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Sep 2022 11:53:07 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=6315a1aac7ac7120b9aba5a3239a00ed05be4d1f commit 6315a1aac7ac7120b9aba5a3239a00ed05be4d1f Author: Zhenlei Huang <zlei.huang@gmail.com> AuthorDate: 2022-09-21 10:55:20 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-09-28 11:52:52 +0000 debugnet: Fix parameter order in the calls to m_get() Reviewed by: markj (cherry picked from commit 440217b0af5ffa08086829f5902b01a92e7a6790) --- 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 e0c98d459a28..a1a0157b88c0 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -485,7 +485,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); @@ -628,7 +628,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) {