diff options
| author | 2012-06-18 19:15:53 -0700 | |
|---|---|---|
| committer | 2012-06-20 16:15:22 -0700 | |
| commit | 1e6a9e56252399ae8c143f2327b4bb8cd289c3d5 (patch) | |
| tree | e4dfb2629ec406052214197f8610ec5fbb39c724 /include/linux/node.h | |
| parent | pstore/ram_core: Proper checking for post_init errors (e.g. improper ECC size) (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 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions
