switch-coreboot/util/intelmetool
Huan Truong 79c854db96 UPSTREAM: util/intelmetool: Fix segfault on edge cases
The intel ME checker tool would segfault if it reaches the end of
the loop without having the dev pointer set. This happens when
it gets to the end of the previous loop without knowing what to do
with any of the devices it sees.

This patch makes sure the pointer is not NULL before accessing it.

BUG=none
BRANCH=none
TEST=none

Change-Id: Ibaef27c8be18b6704d60250098a6f676fe197965
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 2a1ae05316
Original-Change-Id: Ia13191799d7e00185947f9df5188cb2666c43e2a
Original-Signed-off-by: Huan Truong <htruong@tnhh.net>
Original-Reviewed-on: https://review.coreboot.org/18573
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://chromium-review.googlesource.com/451435
2017-03-08 05:13:03 -08:00
..
intelmetool.c UPSTREAM: util/intelmetool: Fix segfault on edge cases 2017-03-08 05:13:03 -08:00
intelmetool.h UPSTREAM: intelmetool: Add the X99 ISA Bridge device id 2016-06-06 23:35:00 -07: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