[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C0774C6.4090000@suse.cz>
Date: Thu, 03 Jun 2010 11:24:22 +0200
From: Jiri Slaby <jslaby@...e.cz>
To: Jesse Barnes <jbarnes@...tuousgeek.org>
CC: linux-pci@...r.kernel.org,
Linux kernel mailing list <linux-kernel@...r.kernel.org>,
Jiri Slaby <jirislaby@...il.com>, achiang@...com
Subject: cpqphp: NULL ptr deref in cpqhpc_probe
Hi,
we have a system where there is a pci hotplug class device to be handled
by cpqphp, but it is not a bridge. But in cpqhpc_probe there is:
struct pci_bus *bus;
...
bus = pdev->subordinate;
...
bus->max_bus_speed = PCI_SPEED_66MHz_PCIX;
But as it is not a bridge, subordinate is NULL and the kernel crashes.
Any idea what would be a correct fix here?
The bugzilla entry is at:
https://bugzilla.novell.com/show_bug.cgi?id=609338
thanks,
--
js
suse labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists