kernel-ark/arch/powerpc/platforms
Breno Leitao 8d3d50bf19 powerpc/eeh: Fix a bug when pci structure is null
During a EEH recover, the pci_dev structure can be null, mainly if an
eeh event is detected during cpi config operation. In this case, the
pci_dev will not be known (and will be null) the kernel will crash
with the following message:

Unable to handle kernel paging request for data at address 0x000000a0
Faulting instruction address: 0xc00000000006b8b4
Oops: Kernel access of bad area, sig: 11 [#1]

NIP [c00000000006b8b4] .eeh_event_handler+0x10c/0x1a0
LR [c00000000006b8a8] .eeh_event_handler+0x100/0x1a0
Call Trace:
[c0000003a80dff00] [c00000000006b8a8] .eeh_event_handler+0x100/0x1a0
[c0000003a80dff90] [c000000000031f1c] .kernel_thread+0x54/0x70

The bug occurs because pci_name() tries to access a null pointer.
This patch just guarantee that pci_name() is not called on Null pointers.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Linas Vepstas <linasvepstas@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-02-17 14:02:47 +11:00
..
8xx powerpc/8xx: Fix build breakage with sparse irq changes 2009-10-30 17:21:38 +11:00
40x powerpc/40x: Add support for the ESTeem 195E (PPC405EP) SBC 2009-08-31 09:15:51 -04:00
44x powerpc/44x: Add Eiger AMCC (AppliedMicro) PPC460SX evaluation board support. 2009-08-31 08:24:15 -04:00
52xx Merge branch 'for-33' of git://repo.or.cz/linux-kbuild 2009-12-17 07:23:42 -08:00
82xx powerpc: Fixup last users of irq_chip->typename 2009-11-24 14:32:45 +11:00
83xx powerpc/83xx/suspend: Save and restore SICRL, SICRH and SCCR 2009-12-10 19:56:41 -06:00
85xx powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
86xx powerpc: Make "intspec" pointers in irq_host->xlate() const 2009-12-09 17:10:37 +11:00
512x powerpc: Fixup last users of irq_chip->typename 2009-11-24 14:32:45 +11:00
amigaone kbuild: move utsrelease.h to include/generated 2009-12-12 13:08:15 +01:00
cell powerpc: Use helpers for rlimits 2010-01-15 13:20:08 +11:00
chrp Merge branch 'for-33' of git://repo.or.cz/linux-kbuild 2009-12-17 07:23:42 -08:00
embedded6xx powerpc/gc/wii: Remove get_irq_desc() 2009-12-21 11:12:14 +11:00
iseries powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
maple edac: cpc925 MC platform device setup 2009-06-18 13:03:57 -07:00
pasemi locking: Convert __raw_spin* functions to arch_spin* 2009-12-14 23:55:32 +01:00
powermac powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
prep
ps3 powerpc: Fixup last users of irq_chip->typename 2009-11-24 14:32:45 +11:00
pseries powerpc/eeh: Fix a bug when pci structure is null 2010-02-17 14:02:47 +11:00
fsl_uli1575.c
Kconfig powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00
Kconfig.cputype Merge branch 'next' of git://git.secretlab.ca/git/linux-2.6 2009-12-16 13:26:53 -08:00
Makefile powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00