HomeFreeBSD

Fix an off-by-one error in vm_map_pmap_enter().

Description

Fix an off-by-one error in vm_map_pmap_enter().

If the starting pindex is equal to object->size, there is nothing to do.
This was harmless since the rest of vm_map_pmap_enter() has no effect
when psize == 0.

Submitted by: Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by: alc, dougm, kib
MFC after: 1 week
Github PR: https://github.com/freebsd/freebsd/pull/417
Differential Revision: https://reviews.freebsd.org/D22678

Details

Provenance
markjAuthored on
Reviewer
alc
Differential Revision
D22678: Fix an off-by-one in vm_map_pmap_enter().
Parents
rS355398: Fix the signature for zone_import and zone_release
Branches
Unknown
Tags
Unknown