diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-10-05 11:54:00 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-06 03:53:27 -0400 |
commit | bde40898c814362e8041cad0e989c7a749c417ec (patch) | |
tree | c476d6d11855c9f8605b9463c8b6cdda55792f17 | |
parent | 6966fed9d8a74f178fc0dabdcc687cb1fe5b75fe (diff) |
sh: fix uninitialized spinlock
The spinlock in traps_64.c is used without initialization.
This fixes it by declaring DEFINE_SPINLOCK() and makes the spinlock static
variable.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/traps_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c index e67e140bf1f6..fda6355654b7 100644 --- a/arch/sh/kernel/traps_64.c +++ b/arch/sh/kernel/traps_64.c | |||
@@ -50,7 +50,7 @@ asmlinkage void do_##name(unsigned long error_code, struct pt_regs *regs) \ | |||
50 | do_unhandled_exception(trapnr, signr, str, __stringify(name), error_code, regs, current); \ | 50 | do_unhandled_exception(trapnr, signr, str, __stringify(name), error_code, regs, current); \ |
51 | } | 51 | } |
52 | 52 | ||
53 | spinlock_t die_lock; | 53 | static DEFINE_SPINLOCK(die_lock); |
54 | 54 | ||
55 | void die(const char * str, struct pt_regs * regs, long err) | 55 | void die(const char * str, struct pt_regs * regs, long err) |
56 | { | 56 | { |