fs-create-and-use-seq_show_option-for-escaping-fix2
PATCH 1/1 fs-create-and-use-seq_show_option-for-escaping-fix2
The buildbots noticed seq_show_option should be using const parameters.
Signed-off-by Kees Cook <[email protected]>
--- include/linux/seq_file.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/seq_file.h +2 -1
@@ -155,7 +155,8 @@ static inline struct user_namespace *seq_user_ns(struct seq_file *seq)* @name: the mount option name * @value: the mount option name's value, can be NULL */ -static inline void seq_show_option (struct seq_file *m,char *name,char *value) +static inline void seq_show_option (struct seq_file *m,const char *name, +const char *value) {seq_putc (m,',' );seq_escape (m, name,",= \t\n\\" );
Signature · 6 lines
1.9.1 -- Kees Cook Chrome OS Security