diff options
author | Bill XIE <persmule@hardenedlinux.org> | 2020-11-10 15:20:24 +0800 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2020-12-12 00:47:48 +0000 |
commit | f880eb061bf44101c65487bd74384a1ddcecce5e (patch) | |
tree | 9067bcc31ade4d1d5fb74db21910976fafd01503 /src/mainboard/portwell | |
parent | 5caca947b22674b4c0681b8c2cedac5ff0e04462 (diff) |
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>
Diffstat (limited to 'src/mainboard/portwell')
0 files changed, 0 insertions, 0 deletions