aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/endian.h
diff options
context:
space:
mode:
authorBojan Novković <bnovkov@FreeBSD.org>2024-06-13 16:14:21 +0000
committerBojan Novković <bnovkov@FreeBSD.org>2024-06-16 16:19:27 +0000
commit774549fe06ac0f45a5a5a661a7fb4107a8695d4c (patch)
treeda534c22b598dea5fdc7b446c477e3cd51aa24d5 /sys/amd64/include/endian.h
parente8816b4b66adf2e6052803cd0eb609ee63fbb3ed (diff)
downloadsrc-774549fe06ac0f45a5a5a661a7fb4107a8695d4c.tar.gz
src-774549fe06ac0f45a5a5a661a7fb4107a8695d4c.zip
riscv pmap: Release PTP reference on leaf ptpage allocation failure
d0941ed fixed an edge case invloving mlock() and superpage creation by creating and inserting a leaf pagetable page for mlock'd superpages. However, the code does not properly release the reference to the pagetable page in the error handling path. This commit fixes the issue by adding calls to 'pmap_abort_ptp' in the error handling path. Reported by: alc Approved by: markj (mentor) Fixes: d0941ed Differential Revision: https://reviews.freebsd.org/D45580
Diffstat (limited to 'sys/amd64/include/endian.h')
0 files changed, 0 insertions, 0 deletions