diff options
author | linas <linas@austin.ibm.com> | 2005-12-02 00:42:32 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-10 04:32:54 (GMT) |
commit | 0f17574a651884c721e1a33051719e59deb13c18 (patch) | |
tree | 5de62fde0c71554b6eb11c25f5167873c3f5d996 /arch/powerpc/platforms | |
parent | 18eb3b398d92028e6f09f0423aa4e2a7b1096db3 (diff) | |
download | linux-fsl-qoriq-0f17574a651884c721e1a33051719e59deb13c18.tar.xz |
[PATCH] powerpc/pseries: dlpar-add crash on null pointer deref
This fixes a crash on null-pointer deref during dlpar slot addition.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from 1c87c0f84943fbbc91826967ff4fea1b059a526f commit)
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 136365c..17cea7f 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c @@ -698,7 +698,7 @@ static void *early_enable_eeh(struct device_node *dn, void *data) 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 @@ static void *early_enable_eeh(struct device_node *dn, void *data) pdn->eeh_mode |= EEH_MODE_NOCHECK; return NULL; } + pdn->class_code = *class_code; /* * Now decide if we are going to "Disable" EEH checking |