diff options
author | Nico Huber <nico.h@gmx.de> | 2022-03-06 00:21:52 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2022-03-08 21:50:00 +0000 |
commit | fd4cb2d7b472393cb534218510f22969f931c4cb (patch) | |
tree | 85aa7e2c32e111c5a28111e48124ff75e48e0787 /rayer_spi.c | |
parent | 11680db4e1251eb842bee11e53b6d1f0ae67767b (diff) | |
download | flashrom-fd4cb2d7b472393cb534218510f22969f931c4cb.tar.gz flashrom-fd4cb2d7b472393cb534218510f22969f931c4cb.tar.bz2 flashrom-fd4cb2d7b472393cb534218510f22969f931c4cb.zip |
dmi: Correctly check for ERROR_PTR
For the physmap*() functions, NULL is considered valid return value.
Fixes a segmentation fault when DMI tables can't be mapped.
Tested on intel/eblake board with broken coreboot.
Change-Id: Ic403c2940c2b91acbd113f0acfa3ce9ef6c6bb6c
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62611
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'rayer_spi.c')
0 files changed, 0 insertions, 0 deletions