diff options
author | Kees Cook <keescook@chromium.org> | 2020-05-08 18:16:02 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-05-30 19:34:02 +0200 |
commit | 563ca40ddf400dbf8c6254077f9b6887101d0f08 (patch) | |
tree | 76b05014c5d219d3e3754ab0517069a58c677653 /include/linux/pstore.h | |
parent | pstore: Make sure console capturing will restart (diff) | |
download | linux-563ca40ddf400dbf8c6254077f9b6887101d0f08.tar.xz linux-563ca40ddf400dbf8c6254077f9b6887101d0f08.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | include/linux/pstore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index e779441e6d26..f6f22b13e04f 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -170,7 +170,7 @@ struct pstore_record { */ struct pstore_info { struct module *owner; - char *name; + const char *name; struct semaphore buf_lock; char *buf; |