diff options
author | John Zhao <john.zhao@intel.com> | 2019-05-31 10:44:46 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-06-03 18:24:06 +0000 |
commit | 317cbd6f02e5f49bbc64dd0de0082c313c77c6b1 (patch) | |
tree | 4c78e1adf59502dc0575dbe9a9523156bbcf1ab0 /src/drivers/spi | |
parent | 9995418166bc4074de2a99aa50e74f8a88196c39 (diff) |
src/soc/intel: Avoid NULL pointer dereference
Coverity detects pointer mem_info as NULL_RETURNS. Add sanity check
for mem_info to prevent NULL pointer dereference.
BUG=CID 1401394
TEST=Built and boot up to kernel.
Change-Id: I9d78ab38b8b2dd3734e0143acfd88d9093f16ce6
Signed-off-by: John Zhao <john.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33152
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/spi')
0 files changed, 0 insertions, 0 deletions