Anton Vorontsov 1e6a9e5625 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 <anton.vorontsov@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-20 16:15:22 -07:00
..
2012-05-29 23:28:34 -04:00
2012-05-29 23:28:34 -04:00
2012-05-28 09:54:45 -07:00
2012-05-29 23:28:33 -04:00
2012-05-28 09:54:45 -07:00
2012-05-28 09:54:45 -07:00
2012-06-01 10:12:15 -07:00
2012-05-29 23:28:33 -04:00
2012-05-28 09:54:45 -07:00
2012-05-29 23:28:33 -04:00
2012-05-29 23:28:40 -04:00
2012-05-28 09:54:45 -07:00
2012-05-29 23:28:32 -04:00
2012-05-29 23:28:33 -04:00
2012-05-28 09:54:45 -07:00
2012-05-29 16:22:23 -07:00
2012-05-28 09:54:45 -07:00
2012-05-29 23:28:41 -04:00
2012-06-01 12:12:00 -04:00
2012-05-29 23:28:31 -04:00
2012-05-29 23:28:41 -04:00
2012-05-29 23:28:41 -04:00
2012-05-29 23:28:29 -04:00