[PATCH] NULL dn->type deref in EEH code (IPR driver)

Paul Mackerras paulus at samba.org
Tue Apr 13 11:31:46 EST 2004


linas at austin.ibm.com writes:

> The IPR driver appearently has NULL for struct device_node *dn->type
> where dn was returned by pci_device_to_OF_node(dev);  I don't know
> if its 'normal' to have a NULL here or not.  Brian King reported
> a crash here in his IPR driver, and this patch works around that.

It's a bit nasty that we let dn->type (and dn->name) ever be NULL.  In
ppc32 we set them to "<NULL>" if there is no device_type (or name)
property.  We should probably do that in ppc64 as well.

Paul.

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list