]> git.ipfire.org Git - thirdparty/grub.git/commit
mm: grub_real_malloc(): Make small allocs comment match code
authorDaniel Axtens <dja@axtens.net>
Wed, 24 Nov 2021 15:22:47 +0000 (02:22 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Dec 2021 02:02:20 +0000 (03:02 +0100)
commita847895a8d000bdf27ad4d4326f883a0eed769ca
tree9ebefd13fee94fc5c9e5fcfb0a1a148419db8d6a
parent246ad6a44c281bb13486ddea0a26bb661db73106
mm: grub_real_malloc(): Make small allocs comment match code

Small allocations move the region's *first pointer. The comment
says that this happens for allocations under 64K. The code says
it's for allocations under 32K. Commit 45bf8b3a7549 changed the
code intentionally: make the comment match.

Fixes: 45bf8b3a7549 (* grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the)
Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/mm.c