Re: [PATCH 2/6] mm: clarify grub_real_malloc

2021-12-08 Thread Daniel Kiper
On Thu, Nov 25, 2021 at 02:22:46AM +1100, Daniel Axtens wrote: > When iterating through the singly linked list of free blocks, > grub_real_malloc uses p and q for the current and previous blocks > respectively. This isn't super clear, so swap to using prev and cur. > > This makes another quirk

[PATCH 2/6] mm: clarify grub_real_malloc

2021-11-24 Thread Daniel Axtens
When iterating through the singly linked list of free blocks, grub_real_malloc uses p and q for the current and previous blocks respectively. This isn't super clear, so swap to using prev and cur. This makes another quirk more obvious. The comment at the top of grub_real_malloc might lead you to