Ingo Molnar 80d38f9a78 drivers/char/esp.c: fix bootup lockup
randconfig testing found a bootup lockup in drivers/char/esp.c because
of a spinlock that wasn't correctly initialized.

I'm not sure why it became more prominent in 2.6.25-rc4, the bug seems
rather old and i've been doing allyesconfig bootups for ages with
CONFIG_ESP enabled.

This fixes this bootup lockup:

 PM: Adding info for No Bus:ttyP63
 ttyP32 at 0x0240 (irq = 0) is an ESP primary port
 BUG: spinlock lockup on CPU#0, swapper/1, f56dd004
 Pid: 1, comm: swapper Not tainted 2.6.25-rc4-sched-devel.git-x86-latest.git #402 [<c03ac6f4>] _raw_spin_lock+0x134/0x140
  [<c08649be>] _spin_lock_irqsave+0x5e/0x80
  [<c0b9fbfe>] ? espserial_init+0x2be/0x6e0
  [<c0b9fbfe>] espserial_init+0x2be/0x6e0
  [<c0b877a3>] kernel_init+0x83/0x260
  [<c0b9f940>] ? espserial_init+0x0/0x6e0
  [<c010416a>] ? restore_nocheck_notrace+0x0/0xe
  [<c0b87720>] ? kernel_init+0x0/0x260
  [<c0b87720>] ? kernel_init+0x0/0x260
  [<c0104507>] kernel_thread_helper+0x7/0x10
  =======================

kzalloc() is not the way to initialize spinlocks anymore.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-07 10:05:13 -08:00
..
2008-02-22 16:50:29 -08:00
2008-02-06 10:41:10 -08:00
2008-02-08 09:22:41 -08:00
2007-10-17 08:42:52 -07:00
2007-05-08 11:15:09 -07:00
2008-02-03 17:11:42 +02:00
2008-02-03 17:11:42 +02:00
2008-03-07 10:05:13 -08:00
2008-01-30 13:30:27 +01:00
2008-02-07 08:42:33 -08:00
2007-02-20 17:11:55 +00:00
2008-02-07 08:42:25 -08:00
2008-02-07 08:42:25 -08:00
2007-10-29 07:41:32 -07:00
2007-07-29 17:09:29 -07:00
2008-02-08 09:22:24 -08:00
2008-02-07 08:42:35 -08:00
2008-02-07 08:42:34 -08:00
2007-10-17 08:42:55 -07:00
2008-02-02 15:14:48 -08:00
2007-02-12 09:48:30 -08:00
2007-07-21 17:49:16 -07:00
2007-10-18 14:37:23 -07:00
2007-07-16 09:05:46 -07:00
2008-02-07 08:42:34 -08:00
2008-02-07 08:42:34 -08:00
2007-10-19 11:53:43 -07:00
2008-02-03 17:11:42 +02:00
2006-12-20 16:37:48 +11:00
2007-10-17 08:42:56 -07:00
2008-03-04 16:35:11 -08:00