coreboot-kgpe-d16/src/southbridge/intel/i82801jx
Nico Huber 744d6bd638 sb/intel: Check for NULL-return of pcidev_on_root()
In these cases we have to expect a NULL pointer because the IGD
device 0:2.0 may be disabled.

The behaviour still differs from using dev_find_slot(), which may
return a disabled device. Though, if you'd try to read its config
space you'd only read garbage (0xff) and in cases where we filled
ACPI data with devicetree information, the information shouldn't
be interpreted by the OS because of the disabled device.

Change-Id: I1bab8fa3a82daca71d03453315cdd69d8951fc24
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/30879
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-01-13 14:00:33 +00:00
..
acpi sb/intel/*: Use common files for PCIe ACPI 2019-01-03 22:33:29 +00:00
bootblock.c cpu/intel: Use the common code to initialize the romstage timestamps 2019-01-09 09:56:06 +00:00
chip.h src: Add missing include <stdint.h> 2018-11-01 11:25:07 +00:00
early_lpc.c cpu/intel: Use the common code to initialize the romstage timestamps 2019-01-09 09:56:06 +00:00
early_smbus.c southbridge: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:03 +00:00
hdaudio.c src: Use "foo **bar" instead of "foo ** bar" 2019-01-07 10:29:14 +00:00
i82801jx.c device: Use pcidev_path_on_root() 2019-01-06 13:09:54 +00:00
i82801jx.h Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
Kconfig Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
lpc.c sb/intel: Check for NULL-return of pcidev_on_root() 2019-01-13 14:00:33 +00:00
Makefile.inc nb/intel/x4x: Use common code for SMM in TSEG 2018-12-03 10:18:56 +00:00
nvs.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
pci.c sb/intel/i82801jx: Get rid of device_t 2018-05-24 18:05:56 +00:00
pcie.c sb/intel/i82801jx: Get rid of device_t 2018-05-24 18:05:56 +00:00
sata.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
smbus.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
smihandler.c sb/intel/i82801jx: Use common Intel SMM code 2018-12-03 10:16:31 +00:00
thermal.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
usb_ehci.c sb/intel/i82801jx: Get rid of device_t 2018-05-24 18:05:56 +00:00