coreboot-kgpe-d16/util/intelmetool
Huan Truong 2a1ae05316 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.

Change-Id: Ia13191799d7e00185947f9df5188cb2666c43e2a
Signed-off-by: Huan Truong <htruong@tnhh.net>
Reviewed-on: https://review.coreboot.org/18573
Tested-by: build bot (Jenkins)
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2017-03-08 04:34:34 +01:00
..
intelmetool.c util/intelmetool: Fix segfault on edge cases 2017-03-08 04:34:34 +01:00
intelmetool.h intelmetool: Add the X99 ISA Bridge device id 2016-06-04 23:41:22 +02: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 util/intelmetool: Fix warning building with 32-bit 2016-12-28 17:25:56 +01:00
mmap.h util/intelmetool: Fix warning building with 32-bit 2016-12-28 17:25:56 +01:00