diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-06-18 19:15:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-20 16:15:22 -0700 |
commit | 1e6a9e56252399ae8c143f2327b4bb8cd289c3d5 (patch) | |
tree | e4dfb2629ec406052214197f8610ec5fbb39c724 /scripts/Makefile | |
parent | beeb94321a7a6d493b4a06ff0cd771f09f41c35e (diff) |
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>
Diffstat (limited to 'scripts/Makefile')
0 files changed, 0 insertions, 0 deletions