diff options
author | Liu ShuoX | 2014-03-12 14:24:44 +0100 |
---|---|---|
committer | Tony Luck | 2014-03-17 22:14:03 +0100 |
commit | 017321cf390045dd4c4afc4a232995ea50bcf66d (patch) | |
tree | c7ce8487792ba20f6e07d3320e4985e331fbf921 /arch/c6x/lib/divi.S | |
parent | pstore: Correct the max_dump_cnt clearing of ramoops (diff) | |
download | kernel-qcow2-linux-017321cf390045dd4c4afc4a232995ea50bcf66d.tar.gz kernel-qcow2-linux-017321cf390045dd4c4afc4a232995ea50bcf66d.tar.xz kernel-qcow2-linux-017321cf390045dd4c4afc4a232995ea50bcf66d.zip |
pstore: Fix buffer overflow while write offset equal to buffer size
In case new offset is equal to prz->buffer_size, it won't wrap at this
time and will return old(overflow) value next time.
Signed-off-by: Liu ShuoX <shuox.liu@intel.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/c6x/lib/divi.S')
0 files changed, 0 insertions, 0 deletions