Some former commits (e.g. Ieb41771c75aae902191bba5d220796e6c343f8e0) blindly assume that dev->chip_info is capable to be dereferenced, making at least compilers complain about potential null pointer dereference. They might cause crash if truly (dev->chip_info == NULL). Signed-off-by: Bill XIE <persmule@hardenedlinux.org> Change-Id: I1d694b12f6c42961c104fe839d4ee46c0f111197 Reviewed-on: https://review.coreboot.org/c/coreboot/+/47387 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> |
||
|---|---|---|
| .. | ||
| ocp | ||
| chip.h | ||
| ipmi_fru.c | ||
| ipmi_kcs.c | ||
| ipmi_kcs.h | ||
| ipmi_kcs_ops.c | ||
| ipmi_kcs_ops_premem.c | ||
| ipmi_ops.c | ||
| ipmi_ops.h | ||
| Kconfig | ||
| Makefile.inc | ||