Skip to contentSkip to conversation

fs-create-and-use-seq_show_option-for-escaping-fix2

PATCH New Kees Cook 1 participant 1 message Aug 11, 2015

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 fs-create-and-use-seq_show_option-for-escaping-fix2

The buildbots noticed seq_show_option should be using const parameters.

---
 include/linux/seq_file.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/seq_file.h +2 -1
index ff4c631348dd..d4c7271382cb 100644
@@ -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