[PATCH][next] um: Malloc just enough space for fitting pid file

Johannes Berg johannes at sipsolutions.net
Sat Oct 26 00:44:53 PDT 2024


On Sat, 2024-10-26 at 16:46 +1300, Paulo Miguel Almeida wrote:
> umid is already generated during make_umid_init __initcall so there is
> no need to allocate UMID_LEN bytes to accommodate the max possible name
> for the umid segment of the filepath
> 
> This patch replaces UMID_LEN occurences in which it's redundant

OK, I guess that's maybe all true, but can you say _why_ in the commit
log?

johannes




More information about the linux-um mailing list