diff options
author | Yue Hu <huyue2@yulong.com> | 2019-01-21 11:20:41 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-01-22 04:32:17 +0100 |
commit | 182ca6e0ae23550cf98d05daeab8dcb7fdc0a928 (patch) | |
tree | e894592e210eea285e00ecfba2429bbe147470cd /samples | |
parent | Linux 5.0-rc3 (diff) | |
download | linux-182ca6e0ae23550cf98d05daeab8dcb7fdc0a928.tar.xz linux-182ca6e0ae23550cf98d05daeab8dcb7fdc0a928.zip |
pstore/ram: Replace dummy_data heap memory with stack memory
In ramoops_register_dummy() dummy_data is allocated via kzalloc()
then it will always occupy the heap space after register platform
device via platform_device_register_data(), but it will not be
used any more. So let's free it for system usage, replace it with
stack memory is better due to small size.
Signed-off-by: Yue Hu <huyue2@yulong.com>
[kees: add required memset and adjust sizeof() argument]
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions