From: Seiji Aguchi Date: Wed, 14 Nov 2012 20:26:46 +0000 (+0000) Subject: efi_pstore: Remove a logic erasing entries from a write callback to hold multiple... X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~63^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96480d9c8fcfd7e325e9be6a6c6846689707f8e0;p=pandora-kernel.git efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs [Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics. 2. efi_pstore is kicked and writes panic messages to NVRAM. 3. system reboots. 4. kernel panics again before a user checks the 1st panic messages in NVRAM. [Solution] A reasonable solution to fix the issue is just holding multiple logs without erasing existing entries. This patch removes a logic erasing existing entries in a write callback because the logic is not needed in the write callback to support holding multiple logs. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison Signed-off-by: Tony Luck --- Reading git-diff-tree failed