On Wed, 9 Mar 2022 13:20:36 -0600 Alex Elder wrote: > - power = kzalloc(sizeof(*power), GFP_KERNEL); > + size = data->interconnect_count * sizeof(power->interconnect[0]); > + power = kzalloc(sizeof(*power) + size, GFP_KERNEL); struct_size(), can be a follow up