From: Anton Vorontsov Date: Tue, 19 Jun 2012 02:15:53 +0000 (-0700) Subject: pstore/ram_core: Better ECC size checking X-Git-Tag: v3.6-rc1~100^2~650 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e6a9e56252399ae8c143f2327b4bb8cd289c3d5;p=pandora-kernel.git pstore/ram_core: Better ECC size checking - Instead of exploiting unsigned overflows (which doesn't work for all sizes), use straightforward checking for ECC total size not exceeding initial buffer size; - Printing overflowed buffer_size is not informative. Instead, print ecc_size and buffer_size; - No need for buffer_size argument in persistent_ram_init_ecc(), we can address prz->buffer_size directly. Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed