summaryrefslogtreecommitdiffstats
path: root/include/ndbm.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2015-10-03 07:43:33 +0000
committeralc <alc@FreeBSD.org>2015-10-03 07:43:33 +0000
commitd1126f3f9b96fc49af294e13da93119e2572a66e (patch)
treea013b6ea01fdfe2e5dd3021055a3b14810eb85f5 /include/ndbm.h
parenteae1444b6e30ea05a3b44f850f064dadf0c0d5c3 (diff)
downloadFreeBSD-src-d1126f3f9b96fc49af294e13da93119e2572a66e.zip
FreeBSD-src-d1126f3f9b96fc49af294e13da93119e2572a66e.tar.gz
MFC r288281
The conversion of kmem_alloc_attr() from operating on a vm map to a vmem arena in r254025 introduced a bug in the case when an allocation is only partially successful. Specifically, the vm object lock was not being acquired before freeing the allocated pages. To address this bug, replace the existing code by a call to kmem_unback(). Change the type of a variable in kmem_alloc_attr() so that an allocation of two or more gigabytes won't fail. Replace the error handling code in kmem_back() by a call to kmem_unback().
Diffstat (limited to 'include/ndbm.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud