diff options
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 1a5ff2211d88..edba2ffb43de 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -379,7 +379,7 @@ get_usage_chars(struct lock_class *class, char *c1, char *c2, char *c3, char *c4 | |||
379 | 379 | ||
380 | static void print_lock_name(struct lock_class *class) | 380 | static void print_lock_name(struct lock_class *class) |
381 | { | 381 | { |
382 | char str[KSYM_NAME_LEN + 1], c1, c2, c3, c4; | 382 | char str[KSYM_NAME_LEN], c1, c2, c3, c4; |
383 | const char *name; | 383 | const char *name; |
384 | 384 | ||
385 | get_usage_chars(class, &c1, &c2, &c3, &c4); | 385 | get_usage_chars(class, &c1, &c2, &c3, &c4); |
@@ -401,7 +401,7 @@ static void print_lock_name(struct lock_class *class) | |||
401 | static void print_lockdep_cache(struct lockdep_map *lock) | 401 | static void print_lockdep_cache(struct lockdep_map *lock) |
402 | { | 402 | { |
403 | const char *name; | 403 | const char *name; |
404 | char str[KSYM_NAME_LEN + 1]; | 404 | char str[KSYM_NAME_LEN]; |
405 | 405 | ||
406 | name = lock->name; | 406 | name = lock->name; |
407 | if (!name) | 407 | if (!name) |