diff mbox series

[RFC,v1,1/6] proc: Fix separator for subset option

Message ID ec2a7c3179e8eb2412289f0683da080b3bc2b18b.1674660533.git.legion@kernel.org (mailing list archive)
State New, archived
Headers show
Series proc: Add allowlist for procfs files | expand

Commit Message

Alexey Gladkov Jan. 25, 2023, 3:28 p.m. UTC
Signed-off-by: Alexey Gladkov <legion@kernel.org>
---
 fs/proc/root.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/proc/root.c b/fs/proc/root.c
index 3c2ee3eb1138..5f1015b6418d 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -91,7 +91,7 @@  static int proc_parse_subset_param(struct fs_context *fc, char *value)
 	struct proc_fs_context *ctx = fc->fs_private;
 
 	while (value) {
-		char *ptr = strchr(value, ',');
+		char *ptr = strchr(value, '+');
 
 		if (ptr != NULL)
 			*ptr++ = '\0';