Created attachment 170020 [details] Patch for malloc using struct In efipart.c, the code to malloc the phys dev info (struct pdinfo) is allocated via: malloc(nin * sizeof(*pdinfo)); It should be malloc(nin * sizeof(struct pdinfo)); according to style(9) and in general code guidelines in FreeBSD
Review: https://reviews.freebsd.org/D6233
Better to use variable to obtain size to allocate so that in the future if variable type changes, compiler's won't produce warnings and harder to track down.