pstore: Check for prz allocation in walker
authorKees Cook <keescook@chromium.org>
Fri, 10 Feb 2017 18:15:34 +0000 (10:15 -0800)
committerKees Cook <keescook@chromium.org>
Mon, 13 Feb 2017 18:25:52 +0000 (10:25 -0800)
commit46418413ed200aa2c856a4426f93a157672b10c7
treecd788a6e3714f0f8c73f8b86724b39ae79d833e3
parent76d5692a58031696e282384cbd893832bc92bd76
pstore: Check for prz allocation in walker

Instead of needing additional checks in callers for unallocated przs,
perform the check in the walker, which gives us a more universal way to
handle the situation.

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