diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-10-15 00:54:40 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-10-30 07:21:28 +0100 |
commit | fd62c6c448669a946e94fbb0ad179918b2233e3d (patch) | |
tree | 3067f9abbfeea2a41a0a183057bcf76d7ddaba3d /fs/jfs/jfs_acl.h | |
parent | powerpc/nvram_64: Remove unused code (diff) | |
download | linux-fd62c6c448669a946e94fbb0ad179918b2233e3d.tar.xz linux-fd62c6c448669a946e94fbb0ad179918b2233e3d.zip |
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>
Diffstat (limited to 'fs/jfs/jfs_acl.h')
0 files changed, 0 insertions, 0 deletions