2012-10-20 19:05:24

by Cyrill Gorcunov

[permalink] [raw]
Subject: [PATCH] lockdep: Use KSYM_NAME_LEN'ed buffer for __get_key_name

Not a big deal, but since other __get_key_name callers
use it lets be consistent.

Signed-off-by: Cyrill Gorcunov <[email protected]>
---
kernel/lockdep_proc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.git/kernel/lockdep_proc.c
===================================================================
--- linux-2.6.git.orig/kernel/lockdep_proc.c
+++ linux-2.6.git/kernel/lockdep_proc.c
@@ -39,7 +39,7 @@ static void l_stop(struct seq_file *m, v

static void print_name(struct seq_file *m, struct lock_class *class)
{
- char str[128];
+ char str[KSYM_NAME_LEN];
const char *name = class->name;

if (!name) {


2012-10-24 12:57:08

by Cyrill Gorcunov

[permalink] [raw]
Subject: [tip:core/locking] lockdep: Use KSYM_NAME_LEN' ed buffer for __get_key_name()

Commit-ID: 99fb4a122e96203dfd6c67d99d908aafd20f4753
Gitweb: http://git.kernel.org/tip/99fb4a122e96203dfd6c67d99d908aafd20f4753
Author: Cyrill Gorcunov <[email protected]>
AuthorDate: Sat, 20 Oct 2012 23:05:19 +0400
Committer: Ingo Molnar <[email protected]>
CommitDate: Wed, 24 Oct 2012 12:39:09 +0200

lockdep: Use KSYM_NAME_LEN'ed buffer for __get_key_name()

Not a big deal, but since other __get_key_name() callers
use it lets be consistent.

Signed-off-by: Cyrill Gorcunov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/20121020190519.GH25467@moon
Signed-off-by: Ingo Molnar <[email protected]>
---
kernel/lockdep_proc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 91c32a0..b2c71c5 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -39,7 +39,7 @@ static void l_stop(struct seq_file *m, void *v)

static void print_name(struct seq_file *m, struct lock_class *class)
{
- char str[128];
+ char str[KSYM_NAME_LEN];
const char *name = class->name;

if (!name) {