diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-10 21:48:18 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-10 21:48:18 +0000 |
commit | 563ca8765260186ce5628efb1fc5501b5e34c8f7 (patch) | |
tree | 46fa4124973f87704bc3d2cd99e3599812ebb963 /usr.sbin/ldapd/util.c | |
parent | 2c12eefb2876e0c05a397f3bba92fc865bb0624d (diff) |
Don't leak swapslots when doing a uvm_km_pgremove and a page is in swap only.
Before we were only calling uao_dropswap() if there was a page, maning
that if the buffer was swapped out then we would leak the slot.
Quite rare because only pipebuffers should swap from the kernel object,
but i've seen panics that implied this had happened (alpha.p for example).
ok thib@ after a lot of discussion and checking the semantics.
Diffstat (limited to 'usr.sbin/ldapd/util.c')
0 files changed, 0 insertions, 0 deletions