linux/drivers/pci
Bjorn Helgaas 1e358f94c0 PCI: Fix use of uninitialized MPS value
If "pcie_bus_config == PCIE_BUS_PERFORMANCE", we don't initialize "smpss",
so we pass a pointer to garbage into pcie_bus_configure_set(), where we
compute "mps" based on the garbage.  We then pass the garbage "mps" to
pcie_write_mps(), which ignores it in the PCIE_BUS_PERFORMANCE case.

Coverity isn't smart enough to deduce that we ignore the garbage (it's a
lot to expect from a human, too), so initialize "smpss" to a safe value in
all cases.

Found by Coverity (CID 146454).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2014-04-29 17:36:44 -06:00
..
host PCI changes for the v3.15 merge window: 2014-04-01 15:14:04 -07:00
hotplug PCI: Remove unnecessary __ref annotations 2014-04-29 17:36:44 -06:00
pcie Merge branch 'pci/dead-code' into next 2014-01-13 16:47:08 -07:00
access.c PCI: Remove unused pci_vpd_truncate() 2014-01-13 11:14:43 -07:00
ats.c PCI: Removed unused parts of Page Request Interface support 2014-01-10 14:00:47 -07:00
bus.c PCI: Remove unnecessary includes of <linux/init.h> 2014-04-14 16:12:37 -06:00
host-bridge.c PCI: Remove unnecessary includes of <linux/init.h> 2014-04-14 16:12:37 -06:00
hotplug-pci.c PCI: Remove unnecessary __ref annotations 2014-04-29 17:36:44 -06:00
htirq.c
ioapic.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
iov.c PCI: Remove unused SR-IOV VF Migration support 2014-02-19 11:28:44 -07:00
irq.c
Kconfig PCI: Convert ioapic to be builtin only, not modular 2014-01-03 14:31:38 -07:00
Makefile Merge branch 'x86-nuke-platforms-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-04-02 13:15:58 -07:00
msi.c PCI: Remove unnecessary includes of <linux/init.h> 2014-04-14 16:12:37 -06:00
of.c
pci-acpi.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
pci-driver.c PCI: Remove dead code 2014-04-29 17:36:44 -06:00
pci-label.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
pci-stub.c
pci-sysfs.c pci: use device_remove_file_self() instead of device_schedule_callback() 2014-02-07 15:42:41 -08:00
pci.c PCI: Fix incorrect vgaarb conditional in WARN_ON() 2014-04-25 11:19:06 -06:00
pci.h PCI: Remove unnecessary __ref annotations 2014-04-29 17:36:44 -06:00
probe.c PCI: Fix use of uninitialized MPS value 2014-04-29 17:36:44 -06:00
proc.c
quirks.c PCI: Add new ID for Intel GPU "spurious interrupt" quirk 2014-04-28 17:39:58 -06:00
remove.c Revert "PCI: Remove from bus_list and release resources in pci_release_dev()" 2014-02-01 10:24:31 -08:00
rom.c PCI: Mark resources as IORESOURCE_UNSET if we can't assign them 2014-02-27 10:43:32 -07:00
search.c PCI: Remove unnecessary includes of <linux/init.h> 2014-04-14 16:12:37 -06:00
setup-bus.c PCI: Remove unnecessary __ref annotations 2014-04-29 17:36:44 -06:00
setup-irq.c PCI: Remove unnecessary includes of <linux/init.h> 2014-04-14 16:12:37 -06:00
setup-res.c PCI: Remove unnecessary includes of <linux/init.h> 2014-04-14 16:12:37 -06:00
slot.c VERIFY_OCTAL_PERMISSIONS: stricter checking for sysfs perms. 2014-03-24 12:21:00 +10:30
syscall.c
vc.c PCI: Rename PCI_VC_PORT_REG1/2 to PCI_VC_PORT_CAP1/2 2013-12-17 17:49:39 -07:00
vpd.c
xen-pcifront.c Features: 2014-01-22 22:00:18 -08:00