[PATCH] powerpc/pseries: dlpar-add crash on null pointer deref
linas
linas at austin.ibm.com
Fri Dec 2 11:42:32 EST 2005
Paul, Please apply.
This patch fixs a crash on null-pointer deref during dlpar slot addition.
Signed-off-by: Linas Vepstas <linas at austin.ibm.com>
Index: linux-2.6.15-rc3-mm1/arch/powerpc/platforms/pseries/eeh.c
===================================================================
--- linux-2.6.15-rc3-mm1.orig/arch/powerpc/platforms/pseries/eeh.c
2005-12-01 17:30:21.000000000 -0600
+++ linux-2.6.15-rc3-mm1/arch/powerpc/platforms/pseries/eeh.c
2005-12-01 18:18:29.808112099 -0600@@ -698,7 +698,7 @@
int enable;
struct pci_dn *pdn = PCI_DN(dn);
- pdn->class_code = *class_code;
+ pdn->class_code = 0;
pdn->eeh_mode = 0;
pdn->eeh_check_count = 0;
pdn->eeh_freeze_count = 0;
@@ -715,6 +715,7 @@
pdn->eeh_mode |= EEH_MODE_NOCHECK;
return NULL;
}
+ pdn->class_code = *class_code;
/*
* Now decide if we are going to "Disable" EEH checking
More information about the Linuxppc64-dev
mailing list