diff options
| author | Yue Hu <[email protected]> | 2019-01-31 10:12:46 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2019-02-12 20:09:49 +0000 |
| commit | 4c6c4d34536744f2c9e171ef5bb548a06a525501 (patch) | |
| tree | b796fdf12b0b4b29b9490dd157c6e40a2f8cd92a /drivers/pci/controller/dwc | |
| parent | pstore/ram: Replace dummy_data heap memory with stack memory (diff) | |
| download | kernel-4c6c4d34536744f2c9e171ef5bb548a06a525501.tar.gz kernel-4c6c4d34536744f2c9e171ef5bb548a06a525501.zip | |
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.
Signed-off-by: Yue Hu <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions
