HomeFreeBSD

Assign map->header values to avoid boundary checks.

Description

Assign map->header values to avoid boundary checks.

In several places, entry start and end field are checked, after
excluding the possibility that the entry is map->header. By assigning
max and min values to the start and end fields of map->header in
vm_map_init, the explicit map->header checks become unnecessary.

Submitted by: Doug Moore <dougm@rice.edu>
Reviewed by: alc, kib, markj (previous version)
Tested by: pho (previous version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D13735

Details

Committed
kibJan 20 2018, 12:19 PM
Reviewer
alc
Differential Revision
D13735: Assign map->header values to avoid boundary checks
Parents
rS328191: psm: Don't try to detect trackpoint packets if the Elantech device has none
Branches
Unknown
Tags
Unknown