From: Ben Zhang Date: Fri, 31 Oct 2014 00:14:21 +0000 (-0700) Subject: pstore/ram: Strip ramoops header for correct decompression X-Git-Tag: omap-for-v3.19/fixes-rc1~149^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a28726b4fb624f81d637a8afb9ea12fc16500f61;p=pandora-kernel.git pstore/ram: Strip ramoops header for correct decompression pstore compression/decompression was added during 3.12. The ramoops driver prepends a "====timestamp.timestamp-C|D\n" header to the compressed record before handing it over to pstore driver which doesn't know about the header. In pstore_decompress(), the pstore driver reads the first "==" as a zlib header, so the decompression always fails. For example, this causes the driver to write /dev/pstore/dmesg-ramoops-0.enc.z instead of /dev/pstore/dmesg-ramoops-0. This patch makes the ramoops driver remove the header before pstore decompression. Signed-off-by: Ben Zhang Acked-by: Kees Cook Signed-off-by: Tony Luck --- Reading git-diff-tree failed