1
linux/arch/powerpc
Thomas Gleixner fd62c6c448 powerpc/nvram_64: Check nvram_error_log_index in nvram_clear_error_log()
nvram_clear_error_log() calls ppc_md.nvram_write() even when
nvram_error_log_index is -1 (invalid). The nvram_write() function does
not check for a negative offset.

Check nvram_error_log_index as the other nvram log functions do.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-10-30 17:21:28 +11:00
..
boot powerpc/boot/dts: drop obsolete 'fsl5200-clocking' 2009-10-15 09:58:27 -06:00
configs Merge commit 'gcl/merge' into merge 2009-10-28 09:56:18 +11:00
include/asm powerpc/nvram_64: Remove unused code 2009-10-30 17:21:28 +11:00
kernel powerpc/nvram_64: Check nvram_error_log_index in nvram_clear_error_log() 2009-10-30 17:21:28 +11:00
kvm const: constify remaining file_operations 2009-10-01 16:11:11 -07:00
lib
math-emu
mm powerpc/mm: Bring hugepage PTE accessor functions back into sync with normal accessors 2009-10-30 17:21:23 +11:00
oprofile
platforms powerpc: Add kdump support to Collaborative Memory Manager 2009-10-30 17:20:56 +11:00
sysdev powerpc: Remove get_irq_desc() 2009-10-30 17:20:55 +11:00
xmon powerpc/booke: Fix xmon single step on PowerPC Book-E 2009-10-27 16:42:40 +11:00
Kconfig powerpc: Make NR_IRQS a CONFIG option 2009-10-30 17:20:54 +11:00
Kconfig.debug
Makefile powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00
relocs_check.pl powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00