summaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83627dhg/superio.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-12 17:13:05 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-01-15 11:22:28 +0000
commit06e6983002ccf2af41e2739c21d0b9e79608d8c9 (patch)
tree07ea58b4be3c31033b6a4dc64c632dd5ea6b506c /src/superio/winbond/w83627dhg/superio.c
parent77a7520385242bd2c9e323ecc74490b383c22f5e (diff)
soc/intel/braswell: Prevent NULL pointer dereference
Exit early if the chipset power state info isn't in CBMEM. Return -1 in order to ensure the one caller of this function exits early as well. Found-by: Coverity CID 1442304 Change-Id: Ifa42ba3024d3144de486d90ed7752820482549bf Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49359 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Lance Zhao Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/winbond/w83627dhg/superio.c')
0 files changed, 0 insertions, 0 deletions