Commit 7c747c5f authored by Domen Puncer's avatar Domen Puncer Committed by Linus Torvalds

[PATCH] fs/proc/base.c: array size

proc_pid_wchan() uses a 128-Byte array for something that can change its
size via define.
Signed-off-by: default avatarwalter harms <wharms@bfs.de>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c12db0a0
......@@ -360,7 +360,7 @@ static int proc_pid_wchan(struct task_struct *task, char *buffer)
char *modname;
const char *sym_name;
unsigned long wchan, size, offset;
char namebuf[128];
char namebuf[KSYM_NAME_LEN+1];
wchan = get_wchan(task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment