coreboot-kgpe-d16/src/southbridge/intel/lynxpoint
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
acpi.c intel: Use common HPET table revision function 2018-08-27 15:50:52 +00:00
azalia.c src/{sb/intel,mb/google/auron}: Don't use device_t 2018-10-18 16:22:03 +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 sb/intel/lynxpoint: Generate the ACPI FADT with a common function 2018-11-16 10:04:42 +00:00
early_me.c southbridge: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:03 +00:00
early_pch.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
early_spi.c southbridge: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:03 +00:00
early_usb.c southbridge: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:03 +00:00
elog.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
hda_verb.c src: Use "foo **bar" instead of "foo ** bar" 2019-01-07 10:29:14 +00:00
hda_verb.h
Kconfig Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
lp_gpio.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
lp_gpio.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
lpc.c sb/intel: Check for NULL-return of pcidev_on_root() 2019-01-13 14:00:33 +00:00
Makefile.inc sb/intel/common: Create a common PCH finalise implementation 2018-12-03 13:14:06 +00:00
me.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
me_9.x.c src/southbridge: Get rid of device_t 2018-12-07 11:22:20 +00:00
me_status.c
nvs.h sb/intel/lynxpoint: Include <stdint.h> to fix compilation errors 2018-11-01 22:24:24 +00:00
pch.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
pch.h Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
pci.c sb/intel/lynxpoint: Get rid of device_t 2018-06-09 16:30:37 +00:00
pcie.c sb/intel/lynxpoint/pcie.c: Add more checks for NULL pointers 2019-01-03 18:10:48 +00:00
pmutil.c sb/intel: Deduplicate vbnv_cmos_failed and rtc_init 2018-11-07 18:12:39 +00:00
rcba.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
sata.c sb/intel/lynxpoint: Get rid of device_t 2018-06-09 16:30:37 +00:00
serialio.c src/{sb/intel,mb/google/auron}: Don't use device_t 2018-10-18 16:22:03 +00:00
smbus.c sb/intel/lynxpoint: Add a PCI ID for an SMBus controller 2018-11-01 20:27:52 +00:00
smi.c sb/intel/lynxpoint: Ensure the finalise handler is called 2018-12-03 13:13:17 +00:00
smihandler.c Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
usb_ehci.c sb/intel/lynxpoint/usb_{e,x}hci.c: Don't use device_t 2018-12-03 13:01:42 +00:00
usb_xhci.c src/southbridge: Get rid of device_t 2018-12-07 11:22:20 +00:00
watchdog.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00