diff options
author | Yue Hu <huyue2@yulong.com> | 2019-01-21 13:20:41 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-01-22 06:32:17 +0300 |
commit | 182ca6e0ae23550cf98d05daeab8dcb7fdc0a928 (patch) | |
tree | e894592e210eea285e00ecfba2429bbe147470cd /fs/notify/fanotify | |
parent | 49a57857aeea06ca831043acbb0fa5e0f50602fd (diff) | |
download | linux-182ca6e0ae23550cf98d05daeab8dcb7fdc0a928.tar.xz |
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 'fs/notify/fanotify')
0 files changed, 0 insertions, 0 deletions