From: Shyam Iyer Date: Thu, 8 Sep 2011 21:41:17 +0000 (-0500) Subject: Fix pointer dereference before call to pcie_bus_configure_settings X-Git-Tag: v3.1-rc6~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5307f6d5fb12fd01f9f321bc4a8fd77e74858647;p=pandora-kernel.git Fix pointer dereference before call to pcie_bus_configure_settings Commit b03e7495a862 ("PCI: Set PCI-E Max Payload Size on fabric") introduced a potential NULL pointer dereference in calls to pcie_bus_configure_settings due to attempts to access pci_bus self variables when the self pointer is NULL. To correct this, verify that the self pointer in pci_bus is non-NULL before dereferencing it. Reported-by: Stanislaw Gruszka Signed-off-by: Shyam Iyer Signed-off-by: Jon Mason Acked-by: Jesse Barnes Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed