[GIT PULL] pstore updates for v5.1-rc1

From: Kees Cook
Date: Mon Mar 04 2019 - 12:27:56 EST


Hi Linus,

Please pull these pstore changes for v5.1-rc1. These are some small
cleanups mostly in the ramoops backend.

Thanks!

-Kees

The following changes since commit 49a57857aeea06ca831043acbb0fa5e0f50602fd:

Linux 5.0-rc3 (2019-01-21 13:14:44 +1300)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/pstore-v5.1-rc1

for you to fetch changes up to 93ee4b7d9f0632690713aee604c49e298e634094:

pstore/ram: Avoid needless alloc during header write (2019-02-12 13:45:53 -0800)

----------------------------------------------------------------
pstore cleanups

- Remove some needless memory allocations (Yue Hu, Kees Cook)
- Add zero-length checks to avoid no-op calls (Yue Hu)

----------------------------------------------------------------
Kees Cook (1):
pstore/ram: Avoid needless alloc during header write

Yue Hu (4):
pstore/ram: Replace dummy_data heap memory with stack memory
pstore: Avoid writing records with zero size
pstore/ram: Move initialization earlier
pstore/ram: Add kmsg hlen zero check to ramoops_pstore_write()

fs/pstore/platform.c | 3 +++
fs/pstore/ram.c | 64 ++++++++++++++++++++++++----------------------------
2 files changed, 32 insertions(+), 35 deletions(-)

--
Kees Cook