]> git.baikalelectronics.ru Git - kernel.git/commit
pstore/platform: Switch pstore_info::name to const
authorKees Cook <keescook@chromium.org>
Fri, 8 May 2020 16:16:02 +0000 (09:16 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 30 May 2020 17:34:02 +0000 (10:34 -0700)
commit618ef0f71a5eb1b1a0bf6f2088dd9e442cd8b312
tree76b05014c5d219d3e3754ab0517069a58c677653
parentc80a3d0be68e5203bf90917e65bbd3e8c2d02a16
pstore/platform: Switch pstore_info::name to const

In order to more cleanly pass around backend names, make the "name" member
const. This means the module param needs to be dynamic (technically, it
was before, so this actually cleans up a minor memory leak if a backend
was specified and then gets unloaded.)

Link: https://lore.kernel.org/lkml/20200510202436.63222-3-keescook@chromium.org/
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c
include/linux/pstore.h