svn commit: r364138 - head/sys/fs/nfsclient

Rick Macklem rmacklem at FreeBSD.org
Wed Aug 12 04:35:50 UTC 2020


Author: rmacklem
Date: Wed Aug 12 04:35:49 2020
New Revision: 364138
URL: https://svnweb.freebsd.org/changeset/base/364138

Log:
  Fix a bug introduced by r363001 for the ext_pgs case.
  
  r363001 added support for ext_pgs mbufs to nfsm_uiombuf().
  By inspection, I noticed that "mlen" was not set non-zero and, as such, there
  would be an iteration of the loop that did nothing.
  This patch sets it.
  This bug would have no effect on the system, since the ext_pgs mbuf code
  is not yet enabled.

Modified:
  head/sys/fs/nfsclient/nfs_clcomsubs.c

Modified: head/sys/fs/nfsclient/nfs_clcomsubs.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clcomsubs.c	Wed Aug 12 03:00:17 2020	(r364137)
+++ head/sys/fs/nfsclient/nfs_clcomsubs.c	Wed Aug 12 04:35:49 2020	(r364138)
@@ -92,7 +92,7 @@ nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *ui
 					    nd->nd_maxextsiz, &nd->nd_bextpg);
 					mcp = (char *)(void *)PHYS_TO_DMAP(
 					  mp->m_epg_pa[nd->nd_bextpg]);
-					nd->nd_bextpgsiz = PAGE_SIZE;
+					nd->nd_bextpgsiz = mlen = PAGE_SIZE;
 				} else {
 					if (clflg)
 						NFSMCLGET(mp, M_WAITOK);


More information about the svn-src-head mailing list