From e036bd330d21e929e94ed4d5432f9d279b19ce47 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Thu, 21 May 2015 09:50:34 -0700 Subject: [PATCH] pstore/ram: verify ramoops header before saving record On some devices the persistent memory contains junk after a cold boot, and /dev/pstore/dmesg-ramoops-* are created with random data which is not the result of a kernel crash. This patch adds a ramoops header check and skips any persistent_ram_zone that does not have a valid header. Signed-off-by: Ben Zhang Signed-off-by: Tony Luck --- Reading git-format-patch failed