soc/intel/apollolake/meminit_util_glk.c: Check for NULL
commit6522bf1a81735d8f0fa6f4b8f5285e0b7e60be01
authorRavi Sarawadi <ravishankar.sarawadi@intel.com>
Thu, 30 Nov 2017 19:25:40 +0000 (30 11:25 -0800)
committerMartin Roth <martinroth@google.com>
Wed, 17 Jan 2018 17:23:25 +0000 (17 17:23 +0000)
tree78cacd3f0aefb723b489ecb2deec2c791ec786c2
parent7e687b84b212bef4444e7b2703f794bab0d86bb0
soc/intel/apollolake/meminit_util_glk.c: Check for NULL

We check for NULL here for memory_info_hob and return if it's NULL
so that the future dereferencing is proper.

Change-Id: Ie34931504ad92739fdaa68ec7989e76e8eee2595
Found-by: Klockworks
Signed-off-by: Ravi Sarawadi <ravishankar.sarawadi@intel.com>
Reviewed-on: https://review.coreboot.org/23223
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/soc/intel/apollolake/meminit_util_glk.c