From: Arve Hjønnevåg Date: Wed, 12 Dec 2012 01:49:24 +0000 (-0800) Subject: pstore/ram: Fix bounds checks for mem_size, record_size, console_size and ftrace_size X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c628937803c652132d21f383736375e2feee4bfb;p=pandora-kernel.git pstore/ram: Fix bounds checks for mem_size, record_size, console_size and ftrace_size The bounds check in ramoops_init_prz was incorrect and ramoops_init_przs had no check. Additionally, ramoops_init_przs allows record_size to be 0, but ramoops_pstore_write_buf would always crash in this case. Signed-off-by: Arve Hjønnevåg Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed