[PATCH] fs-create-and-use-seq_show_option-for-escaping-fix2
From: Kees Cook
Date: Tue Aug 11 2015 - 19:04:10 EST
The buildbots noticed seq_show_option should be using const parameters.
Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
---
include/linux/seq_file.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
index ff4c631348dd..d4c7271382cb 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
@@ -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\\");
--
1.9.1
--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/