Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11139
-gerrit
commit f963766609c6c7c2f77d0058dd42728cc22723b1 Author: Patrick Georgi patrick@georgi-clan.de Date: Sat Aug 8 22:02:12 2015 +0200
intel/i945: don't read structs out of uninitialized pointers
Change-Id: I7f17cd1418f05ff3e8cd559eca6ec3ce7f9bfb79 Signed-off-by: Patrick Georgi patrick@georgi-clan.de --- src/northbridge/intel/i945/gma.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/northbridge/intel/i945/gma.c b/src/northbridge/intel/i945/gma.c index a2e5163..437b6ce 100644 --- a/src/northbridge/intel/i945/gma.c +++ b/src/northbridge/intel/i945/gma.c @@ -496,6 +496,9 @@ intel_gma_get_controller_info(void) return NULL; } struct northbridge_intel_i945_config *chip = dev->chip_info; + if (!chip) { + return NULL; + } return &chip->gfx; }