coreboot/src/drivers/ipmi
Bill XIE f880eb061b drivers/ipmi: Handle the condition when (dev->chip_info == NULL)
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>
2020-12-12 00:47:48 +00:00
..
ocp drivers/ipmi/ocp/ipmi_ocp.c: Clean up includes 2020-10-06 17:43:38 +00:00
chip.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ipmi_fru.c drivers/ipmi: Read more FRU data fields for Product and Board Info 2020-06-28 21:43:59 +00:00
ipmi_kcs.c src/drivers: Drop unneeded empty lines 2020-09-21 15:51:52 +00:00
ipmi_kcs.h src/drivers/ipmi: Add function to get BMC revision 2020-10-26 06:46:17 +00:00
ipmi_kcs_ops.c drivers/ipmi: Handle the condition when (dev->chip_info == NULL) 2020-12-12 00:47:48 +00:00
ipmi_kcs_ops_premem.c src: Include <arch/io.h> when appropriate 2020-10-26 06:44:40 +00:00
ipmi_ops.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ipmi_ops.h drivers/ipmi: Read more FRU data fields for Product and Board Info 2020-06-28 21:43:59 +00:00
Kconfig drivers/ipmi: Add CONFIG_IPMI_KCS_TIMEOUT_MS for IPMI KCS timeout value 2020-09-09 13:39:36 +00:00
Makefile.inc drivers/ipmi: Add IPMI KCS support in romstage 2020-07-04 11:14:44 +00:00