Shyam Iyer 5307f6d5fb 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 <sgruszka@redhat.com>
Signed-off-by: Shyam Iyer <shyam_iyer@dell.com>
Signed-off-by: Jon Mason <mason@myri.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-09 19:49:58 -07:00
..
2011-07-16 18:36:17 -04:00
2011-01-10 08:51:44 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2010-07-30 09:47:22 -07:00
2010-10-18 08:31:02 +02:00
2010-10-18 08:31:02 +02:00
2008-06-10 14:37:03 -07:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2011-01-10 08:51:44 -08:00
2010-10-18 08:33:02 +02:00
2010-10-18 08:33:02 +02:00
2010-10-18 08:33:02 +02:00
2010-10-18 08:33:02 +02:00