pstore/ram: Fix bounds checks for mem_size, record_size, console_size and ftrace_size
authorArve Hjønnevåg <arve@android.com>
Wed, 12 Dec 2012 01:49:24 +0000 (17:49 -0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 13 Dec 2012 03:02:52 +0000 (19:02 -0800)
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 <arve@android.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

No differences found