Attention is currently required from: Dinesh Gehlot, Kapil Porwal, Nick Vaccaro, Subrata Banik.
Eric Lai has posted comments on this change by Subrata Banik. ( https://review.coreboot.org/c/coreboot/+/82628?usp=email )
Change subject: mb/google/brya/var/bb/nissa: Fix potential null pointer dereference ......................................................................
Patch Set 1: Code-Review+2
(1 comment)
File src/mainboard/google/brya/variants/baseboard/nissa/ramstage.c:
https://review.coreboot.org/c/coreboot/+/82628/comment/1044f459_9c85aff0?usp... : PS1, Line 19: if (override_pads != NULL) As long as the override_num is 0 is fine. I think if we return NULL the number will set to 0, but good to have check.
void gpio_padbased_override(struct pad_config *padbased_table, const struct pad_config *override_cfg, size_t override_num_pads) { for (size_t i = 0; i < override_num_pads; i++) { /* Prevent overflow hack */ ASSERT(override_cfg[i].pad < TOTAL_PADS); padbased_table[override_cfg[i].pad] = override_cfg[i]; } }