pstore: Avoid size casts for 842 compression
authorKees Cook <keescook@chromium.org>
Tue, 6 Mar 2018 23:15:24 +0000 (15:15 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 6 Mar 2018 23:15:24 +0000 (15:15 -0800)
commit555974068ee533e8e0c6093ec7ca1682057aa4c1
tree63a9acedb92849eeb0fa21f4fb9d3bb498b1b509
parent239b716199d9aff0d09444b0086e23aacd6bd445
pstore: Avoid size casts for 842 compression

Instead of casting, make sure we don't end up with giant values and just
perform regular assignments with unsigned int instead of re-cast size_t.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c