commit | 245e540ecbe8e0daa8db747dcc6d470fa6f79938 | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Sun Mar 06 00:21:52 2022 +0100 |
committer | Felix Singer <felixsinger@posteo.net> | Thu Sep 29 17:06:09 2022 +0000 |
tree | b8bfd72696a54c0adb7f3e3d06afaedcf9b36c48 | |
parent | 04fce478cb9aba339439d1955c3355a075445ec1 [diff] |
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> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67875 Reviewed-by: Felix Singer <felixsinger@posteo.net>