All of lore.kernel.org
 help / color / mirror / Atom feed
* cpqphp: NULL ptr deref in cpqhpc_probe
@ 2010-06-03  9:24 Jiri Slaby
  2010-06-03  9:26 ` Jiri Slaby
  2010-06-08 21:37 ` Jesse Barnes
  0 siblings, 2 replies; 7+ messages in thread
From: Jiri Slaby @ 2010-06-03  9:24 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-pci, Linux kernel mailing list, Jiri Slaby, achiang

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-10 23:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-03  9:24 cpqphp: NULL ptr deref in cpqhpc_probe Jiri Slaby
2010-06-03  9:26 ` Jiri Slaby
2010-06-08 21:37 ` Jesse Barnes
2010-06-08 22:05   ` Greg KH
2010-06-10 22:34   ` Alex Chiang
2010-06-10 23:19     ` Greg KH
2010-06-10 23:28       ` Alex Chiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.