[GIT PULL] pstore fix for v5.5-rc6

From: Kees Cook
Date: Thu Jan 09 2020 - 23:47:08 EST


Hi Linus,

Please pull this pstore fix for v5.5-rc6. Cengiz Can forwarded a Coverity
report about more problems with a rare pstore initialization error path,
so the allocation lifetime was rearranged to avoid needing to share the
kfree() responsibilities between caller and callee.

Thanks!

-Kees

The following changes since commit 9e5f1c19800b808a37fb9815a26d382132c26c3d:

pstore/ram: Write new dumps to start of recycled zones (2020-01-02 12:30:50 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/pstore-v5.5-rc6

for you to fetch changes up to e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8:

pstore/ram: Regularize prz label allocation lifetime (2020-01-08 17:05:45 -0800)

----------------------------------------------------------------
pstore fix for rare error path

- Fix label allocation lifetime/visibility to avoid further mistakes

----------------------------------------------------------------
Kees Cook (1):
pstore/ram: Regularize prz label allocation lifetime

fs/pstore/ram.c | 4 ++--
fs/pstore/ram_core.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

--
Kees Cook