linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* eeh bug
@ 2007-05-17  4:46 Benjamin Herrenschmidt
  2007-05-17  4:59 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2007-05-17  4:46 UTC (permalink / raw)
  To: Linas Vepstas; +Cc: linuxppc-dev list

Hi Linas !

While debugging some other issues, I had a couple of oopses caused by
what looks like a bug in EEH:

When an RTAS PCI config space call returns all f's, we do an eeh error
check by calling eeh_dn_check_failure(pdn->node, NULL);

The problem is that second argument... NULL for the pci_dev *. It looks
like the EEH code will try to printk pci_name of that and later on
dereference it within eehd, thus causing an oops.

I'm not sure what's the best way to fix it and have no time to dig right
now though I suppose one could walk all PCI devices in the system to
look for a match with the dev node.

Though if for some reason we don't find a match, I think we should still
handle NULL's gracefully.

Cheers,
Ben.

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

end of thread, other threads:[~2007-05-17 22:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17  4:46 eeh bug Benjamin Herrenschmidt
2007-05-17  4:59 ` Benjamin Herrenschmidt
2007-05-17 16:44   ` Linas Vepstas
2007-05-17 22:43     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).