aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
authorJoe Mario <jmario@redhat.com>2013-11-12 18:10:23 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-12 22:09:26 -0500
commitab76786561e0fa1c6d45d6963ab87bb6d628d4cb (patch)
treeff8fdf240072d984e94ee4706cfba4ed69b3ae8e /kernel/kprobes.c
parent9ba4bcb645898d562498ea66a0df958ef0e7a68c (diff)
kprobes: use KSYM_NAME_LEN to size identifier buffers
Use KSYM_NAME_LEN to size identifier buffers, so that it can be easier increased. Signed-off-by: Joe Mario <jmario@redhat.com> Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r--kernel/kprobes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index a0d367a49122..ceeadfcabb76 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -2066,7 +2066,7 @@ static int __init init_kprobes(void)
2066{ 2066{
2067 int i, err = 0; 2067 int i, err = 0;
2068 unsigned long offset = 0, size = 0; 2068 unsigned long offset = 0, size = 0;
2069 char *modname, namebuf[128]; 2069 char *modname, namebuf[KSYM_NAME_LEN];
2070 const char *symbol_name; 2070 const char *symbol_name;
2071 void *addr; 2071 void *addr;
2072 struct kprobe_blackpoint *kb; 2072 struct kprobe_blackpoint *kb;
@@ -2192,7 +2192,7 @@ static int __kprobes show_kprobe_addr(struct seq_file *pi, void *v)
2192 const char *sym = NULL; 2192 const char *sym = NULL;
2193 unsigned int i = *(loff_t *) v; 2193 unsigned int i = *(loff_t *) v;
2194 unsigned long offset = 0; 2194 unsigned long offset = 0;
2195 char *modname, namebuf[128]; 2195 char *modname, namebuf[KSYM_NAME_LEN];
2196 2196
2197 head = &kprobe_table[i]; 2197 head = &kprobe_table[i];
2198 preempt_disable(); 2198 preempt_disable();