util/intelmetool: Fix crash on strict devmem kernels
commitaac3b31dbbc5b46aeb9393fb5594f0271d50a007
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 1 Feb 2018 15:12:47 +0000 (1 16:12 +0100)
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>
Mon, 16 Apr 2018 22:26:46 +0000 (16 22:26 +0000)
tree0b0adc6d364b3a7c4f77b29c31820ffe62e72246
parent44ad86a723b365f597a3a0243783c8fd05837250
util/intelmetool: Fix crash on strict devmem kernels

Don't crash if mapping MEI PCI memory fails.
This can happen if CONFIG_STRICT_DEVMEM is enabled.

Change-Id: I33c75a7cccb4cefaa26f70aed4bdc4bd620cdad0
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/25398
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
util/intelmetool/intelmetool.c
util/intelmetool/me.c