summaryrefslogtreecommitdiff
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorYue Hu <huyue2@yulong.com>2019-01-21 13:20:41 +0300
committerKees Cook <keescook@chromium.org>2019-01-22 06:32:17 +0300
commit182ca6e0ae23550cf98d05daeab8dcb7fdc0a928 (patch)
treee894592e210eea285e00ecfba2429bbe147470cd /fs/pnode.c
parent49a57857aeea06ca831043acbb0fa5e0f50602fd (diff)
downloadlinux-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/pnode.c')
0 files changed, 0 insertions, 0 deletions