[PATCH 35/42]: ppc64: bugfix: fill in un-initialzed field
Linas Vepstas
linas at linas.org
Fri Nov 4 11:54:34 EST 2005
235-eeh-set-pcidev-bugfix.patch
The pci device field should be initialized to a valid value.
Signed-off-by: Linas Vepstas <linas at austin.ibm.com>
Index: linux-2.6.14-git3/arch/powerpc/platforms/pseries/eeh_cache.c
===================================================================
--- linux-2.6.14-git3.orig/arch/powerpc/platforms/pseries/eeh_cache.c 2005-11-02 14:42:38.994154417 -0600
+++ linux-2.6.14-git3/arch/powerpc/platforms/pseries/eeh_cache.c 2005-11-02 14:46:23.687642815 -0600
@@ -307,6 +307,9 @@
/* Save the BAR's; firmware doesn't restore these after EEH reset */
dn = pci_device_to_OF_node(dev);
eeh_save_bars(dev, PCI_DN(dn));
+
+ pci_dev_get (dev); /* matching put is in eeh_remove_device() */
+ PCI_DN(dn)->pcidev = dev;
}
#ifdef DEBUG
More information about the Linuxppc64-dev
mailing list