aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/partedit
diff options
context:
space:
mode:
authorTimo Völker <timo.voelker@fh-muenster.de>2026-03-02 17:59:45 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2026-03-02 17:59:45 +0000
commit0272359ada144aa540c28fefaf996afa30dc0aa5 (patch)
tree21b54df21279690a27f138a438e333ae58de6012 /usr.sbin/bsdinstall/partedit
parentb55bffeaaf9bae5dc7aa21eae441d89c999ebab8 (diff)
arm64/pmap: fix pmap_is_valid_memattr()HEADmain
The function pmap_is_valid_memattr(pmap, mode) checks whether the given variable mode is between the two constant values VM_MEMATTR_DEVICE and VM_MEMATTR_WRITE_THROUGH. After the code for this function was written, the value of VM_MEMATTR_DEVICE changed from 0 to 4. Since VM_MEMATTR_WRITE_THROUGH is still 3, the condition is always false. This patch changes the condition to check whether mode is equal to any of the VM_MEMATTR* constants. Reviewed by: andrew, tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55534
Diffstat (limited to 'usr.sbin/bsdinstall/partedit')
0 files changed, 0 insertions, 0 deletions