From: Thomas Gleixner Date: Wed, 14 Oct 2009 22:54:40 +0000 (+0000) Subject: powerpc/nvram_64: Check nvram_error_log_index in nvram_clear_error_log() X-Git-Tag: v2.6.33-rc1~293^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd62c6c448669a946e94fbb0ad179918b2233e3d;p=pandora-kernel.git 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 Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@ozlabs.org Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed