From: Liu ShuoX Date: Wed, 12 Mar 2014 13:24:44 +0000 (+0800) Subject: pstore: Fix buffer overflow while write offset equal to buffer size X-Git-Tag: v3.15-rc1~92^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=017321cf390045dd4c4afc4a232995ea50bcf66d;p=pandora-kernel.git 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 Acked-by: Kees Cook Signed-off-by: Tony Luck --- Reading git-diff-tree failed