From 15bdf223eb84dd65e9ef18a81c8107023a751407 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Wed, 9 Jun 2010 22:31:13 +0200 Subject: [PATCH] --- yaml --- r: 200347 b: refs/heads/master c: a7ef7d1f5e898984c479e8c41ca702141bbadc78 h: refs/heads/master i: 200345: 7209748272f60de24132f4f542498ea9f760fd76 200343: d36b63e35292774c40695cc44a032fcd5094f69d v: v3 --- [refs] | 2 +- trunk/drivers/pci/hotplug/cpqphp_core.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0c0787c8b1a5..d7a9d2e5b749 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3be434f0244ee059432f92de7e891ee514f41738 +refs/heads/master: a7ef7d1f5e898984c479e8c41ca702141bbadc78 diff --git a/trunk/drivers/pci/hotplug/cpqphp_core.c b/trunk/drivers/pci/hotplug/cpqphp_core.c index b3e5580c837b..4952c3b9379d 100644 --- a/trunk/drivers/pci/hotplug/cpqphp_core.c +++ b/trunk/drivers/pci/hotplug/cpqphp_core.c @@ -828,7 +828,14 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) pci_name(pdev), err); return err; } + bus = pdev->subordinate; + if (!bus) { + dev_notice(&pdev->dev, "the device is not a bridge, " + "skipping\n"); + rc = -ENODEV; + goto err_disable_device; + } /* Need to read VID early b/c it's used to differentiate CPQ and INTC * discovery