svn commit: r364137 - projects/nfs-over-tls/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Wed Aug 12 03:00:17 UTC 2020
Author: rmacklem
Date: Wed Aug 12 03:00:17 2020
New Revision: 364137
URL: https://svnweb.freebsd.org/changeset/base/364137
Log:
Set mlen when the new page is assigned.
This bug was found by inspection since, without it, the function still
worked, although it did a loop iteration with mlen == 0, which was
essentially a no-op.
Modified:
projects/nfs-over-tls/sys/fs/nfsclient/nfs_clcomsubs.c
Modified: projects/nfs-over-tls/sys/fs/nfsclient/nfs_clcomsubs.c
==============================================================================
--- projects/nfs-over-tls/sys/fs/nfsclient/nfs_clcomsubs.c Wed Aug 12 02:05:33 2020 (r364136)
+++ projects/nfs-over-tls/sys/fs/nfsclient/nfs_clcomsubs.c Wed Aug 12 03:00:17 2020 (r364137)
@@ -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-projects
mailing list