summaryrefslogtreecommitdiffstats
path: root/Documentation/circular-buffers.txt
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-06-19 04:15:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-21 01:15:22 +0200
commit1e6a9e56252399ae8c143f2327b4bb8cd289c3d5 (patch)
treee4dfb2629ec406052214197f8610ec5fbb39c724 /Documentation/circular-buffers.txt
parentpstore/ram_core: Proper checking for post_init errors (e.g. improper ECC size) (diff)
downloadlinux-1e6a9e56252399ae8c143f2327b4bb8cd289c3d5.tar.xz
linux-1e6a9e56252399ae8c143f2327b4bb8cd289c3d5.zip
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 'Documentation/circular-buffers.txt')
0 files changed, 0 insertions, 0 deletions