summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-03-25 16:38:10 +0000
committerkib <kib@FreeBSD.org>2011-03-25 16:38:10 +0000
commiteeb1ebf124d9c1b108ce628aa98d1af7875d3334 (patch)
treee32e00ee6351de0257ca9e2cd7d455cb4286c383 /libexec
parent4dc12088a11c128c9cbe74247ccb5b2a1ddb92c8 (diff)
downloadFreeBSD-src-eeb1ebf124d9c1b108ce628aa98d1af7875d3334.zip
FreeBSD-src-eeb1ebf124d9c1b108ce628aa98d1af7875d3334.tar.gz
Handle the corner case in vm_fault_quick_hold_pages().
If supplied length is zero, and user address is invalid, function might return -1, due to the truncation and rounding of the address. The callers interpret the situation as EFAULT. Instead of handling the zero length in caller, filter it in vm_fault_quick_hold_pages(). Sponsored by: The FreeBSD Foundation Reviewed by: alc
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud