Yue Hu 32a20bc220 pstore: Avoid writing records with zero size
Sometimes pstore_console_write() will write records with zero size
to persistent ram zone, which is unnecessary. It will only increase
resource consumption. Also adjust ramoops_write_kmsg_hdr() to have
same logic if memory allocation fails.

Change-Id: I66e5aa533774ce429feec697056e1eda5ef56b03
Signed-off-by: Yue Hu <huyue2@yulong.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2024-11-01 22:39:09 -03:00
..
2023-08-23 14:54:21 +00:00
2023-09-30 11:44:35 +00:00
2023-09-30 11:44:35 +00:00
2020-05-20 12:15:34 +02:00
2024-07-10 19:51:57 -03:00
2023-01-18 09:32:42 +01:00
2024-03-26 00:32:02 -03:00
2021-12-14 10:16:55 +01:00
2024-03-26 00:32:02 -03:00
2022-02-23 12:10:45 +01:00