[coreboot-gerrit] Change in ...coreboot[master]: sb/intel/lynxpoint/pcie.c: Add more checks for NULL pointers

Tristan Corrick (Code Review) gerrit at coreboot.org
Sun Dec 9 02:14:06 CET 2018


Hello Patrick Rudolph, build bot (Jenkins), 

I'd like you to reexamine a change. Please visit

    https://review.coreboot.org/c/coreboot/+/30079

to look at the new patch set (#2).

Change subject: sb/intel/lynxpoint/pcie.c: Add more checks for NULL pointers
......................................................................

sb/intel/lynxpoint/pcie.c: Add more checks for NULL pointers

If PCIe root port `n` is disabled, then `rpc.ports[n - 1]` remains NULL.
The existing Lynx Point systems probably don't end up dereferencing
NULL pointers this way. However, it might occur on a system using
Flexible I/O to remap PCIe root ports to other functions.

Tested on an ASRock H81M-HDS and an Acer C720 (Google Peppy). No issues
presented themselves.

Change-Id: I2c22fa36217766c2c4d6e8046f99989063066b16
Signed-off-by: Tristan Corrick <tristan at corrick.kiwi>
---
M src/southbridge/intel/lynxpoint/pcie.c
1 file changed, 29 insertions(+), 16 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/30079/2
-- 
To view, visit https://review.coreboot.org/c/coreboot/+/30079
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2c22fa36217766c2c4d6e8046f99989063066b16
Gerrit-Change-Number: 30079
Gerrit-PatchSet: 2
Gerrit-Owner: Tristan Corrick <tristan at corrick.kiwi>
Gerrit-Reviewer: Patrick Rudolph <siro at das-labor.org>
Gerrit-Reviewer: Tristan Corrick <tristan at corrick.kiwi>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181209/82340b83/attachment.html>


More information about the coreboot-gerrit mailing list