On 02.09.2024 15:47, Alejandro Vallejo wrote:
> On Fri Aug 30, 2024 at 10:46 PM BST, Daniel P. Smith wrote:
>> @@ -309,7 +319,7 @@ void __init discard_initial_images(void)
>>                             start + PAGE_ALIGN(initial_images[i].mod_end));
>>      }
>>  
>> -    nr_initial_images = 0;
>> +    boot_info->nr_mods = 0;
> 
> Out of curiosity, why is this required?

Together with ...

>>      initial_images = NULL;

... this - to prevent undue access attempts later on. IOW just to be on
the safe side, aiui.

Jan

Reply via email to