summaryrefslogtreecommitdiffstats
path: root/lib/sha1.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2011-09-13 20:16:33 +0200
committerLinus Torvalds2011-09-14 01:08:31 +0200
commit1a4b1a41b8a3d5256019854e851beed063b34344 (patch)
treefa62183e093cf032c74cac8149fb69a49b07b7e0 /lib/sha1.c
parentMerge branch 'acpi' of git://github.com/lenb/linux (diff)
downloadkernel-qcow2-linux-1a4b1a41b8a3d5256019854e851beed063b34344.tar.gz
kernel-qcow2-linux-1a4b1a41b8a3d5256019854e851beed063b34344.tar.xz
kernel-qcow2-linux-1a4b1a41b8a3d5256019854e851beed063b34344.zip
pci: Don't crash when reading mpss from root complex
In pcie_find_smpss(), we have the following statement: if (dev->is_hotplug_bridge && (!list_is_singular(&dev->bus->devices) || dev->bus->self->pcie_type != PCI_EXP_TYPE_ROOT_PORT)) The problem is that at least on my machine, this gets called for the root complex (virtual P2P bridge), and dev->bus->self is NULL since the parent bus for this is not itself anchor to a PCI device. This adds the necessary NULL check. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Jon Mason <mason@myri.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/sha1.c')
0 files changed, 0 insertions, 0 deletions