diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2021-05-06 15:56:30 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-05-07 00:04:35 +0200 |
commit | 93023e79f28a85b5e3f2a05c95b49719b3f72bb1 (patch) | |
tree | 8983012972718e762de1afde5860cb217f2b9fd5 /libpager/object-terminate.c | |
parent | 9dfc92959856e660c73c1b4d92d4b1e5e3f98b76 (diff) | |
download | hurd-93023e79f28a85b5e3f2a05c95b49719b3f72bb1.tar.gz hurd-93023e79f28a85b5e3f2a05c95b49719b3f72bb1.tar.bz2 hurd-93023e79f28a85b5e3f2a05c95b49719b3f72bb1.zip |
libpager: Fix overallocating pagemap
The code tried to round up the allocation size to a multiple of page size.
But we actually allocate newsize * sizeof (*p->pagemap) bytes, not newsize
bytes, which meant allocations were sizeof (*p->pagemap) times larger than
they needed to be.
Message-Id: <20210506125631.79117-6-bugaevc@gmail.com>
Diffstat (limited to 'libpager/object-terminate.c')
0 files changed, 0 insertions, 0 deletions