switch-coreboot/util/intelmetool
Youness Alaoui 5fcd074ca2 UPSTREAM: util/intelmetool: Check for NULL return from pci_lookup_name
pci_lookup_name might return NULL from using format_name internally
which could cause a crash when trying to print that value. We
check for NULL and print a more appropriate value in that case.

BUG=none
BRANCH=none
TEST=none

Change-Id: I4dcf7aafb583473e1e6e5a9d2a3192743678fcb0
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b85ddc787e
Original-Change-Id: I499f0b5e1681f3926df0d8a325aab2c666ebd632
Original-Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
Original-Reviewed-on: https://review.coreboot.org/19089
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/468733
2017-04-07 07:03:31 -07:00
..
intelmetool.c UPSTREAM: util/intelmetool: Check for NULL return from pci_lookup_name 2017-04-07 07:03:31 -07:00
intelmetool.h UPSTREAM: util/intelmetool: Add support for Wildcat Point LP 2017-03-08 05:13:04 -08:00
Makefile util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
me.c util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
me.h util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
me_status.c util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
mmap.c UPSTREAM: util/intelmetool: Fix warning building with 32-bit 2017-01-05 11:00:30 -08:00
mmap.h UPSTREAM: util/intelmetool: Fix warning building with 32-bit 2017-01-05 11:00:30 -08:00