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.
This commit is contained in:
@@ -92,7 +92,7 @@ nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *uiop, int siz)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user