summaryrefslogtreecommitdiffstats
path: root/kernel/net/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/ceph')
-rw-r--r--kernel/net/ceph/ceph_common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/net/ceph/ceph_common.c b/kernel/net/ceph/ceph_common.c
index 79e8f71ae..3f76eb84b 100644
--- a/kernel/net/ceph/ceph_common.c
+++ b/kernel/net/ceph/ceph_common.c
@@ -495,8 +495,11 @@ int ceph_print_client_options(struct seq_file *m, struct ceph_client *client)
struct ceph_options *opt = client->options;
size_t pos = m->count;
- if (opt->name)
- seq_printf(m, "name=%s,", opt->name);
+ if (opt->name) {
+ seq_puts(m, "name=");
+ seq_escape(m, opt->name, ", \t\n\\");
+ seq_putc(m, ',');
+ }
if (opt->key)
seq_puts(m, "secret=<hidden>,");