aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDomen Puncer <domen@coderock.org>2005-01-10 17:18:15 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-10 17:18:15 -0800
commit7c747c5fc18b13748c635321b25b02dc2ffd0b37 (patch)
tree02d0abe97bced1ad3207962a73a60e5666e4f0d1 /fs
parentc12db0a085da9da963efaa08322e228d9eb96caf (diff)
downloadhistory-7c747c5fc18b13748c635321b25b02dc2ffd0b37.tar.gz
[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: walter harms <wharms@bfs.de> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index d3488902459b3f..f198e17edc83c2 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -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);