coreboot/src/soc
Maulik V Vaghela cdc1de7e92 intelblocks/gpio.c: Handle NULL return values from child functions
gpio_configure_pad function gets called for most of the GPIO
configuration for all the boards. This function is not handling NULL
pointers properly which can cause exception in CPU.

This patch fixes the handling and function is able to return early
in case the NULL pointer is passed or any subsequent child function
calls return NULL.

BUG=None
BRANCH=None
TEST=Compilation works fine for all Alder Lake boards.

Change-Id: I97fad72cdd92f70c7c5e6fdd23fbecf535a6e388
Signed-off-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64857
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
2022-06-03 15:27:16 +00:00
..
amd amdblocks/smm.h: Add header guards 2022-06-03 15:22:28 +00:00
cavium i2c: Add configurable I2C transfer timeout 2022-03-15 22:06:27 +00:00
example
intel intelblocks/gpio.c: Handle NULL return values from child functions 2022-06-03 15:27:16 +00:00
mediatek soc/mediatek/mt8186/pll.c: Fix typo in log message 2022-06-01 15:34:04 +00:00
nvidia soc/*: Use __fallthrough statement 2022-05-11 06:04:25 +00:00
qualcomm sc7180: Trogdor to support 2 dcb 2022-06-01 18:05:38 +00:00
rockchip soc/*: Use __fallthrough statement 2022-05-11 06:04:25 +00:00
samsung i2c: Add configurable I2C transfer timeout 2022-03-15 22:06:27 +00:00
sifive
ti treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
ucb