Eric Dumazet
de5e2ddf9b
ipmi: proper spinlock initialization
...
Unloading ipmi module can trigger following error. (if
CONFIG_DEBUG_SPINLOCK=y)
[ 9633.779590] BUG: spinlock bad magic on CPU#1, rmmod/7170
[ 9633.779606] lock: f41f5414, .magic: 00000000, .owner:
<none>/-1, .owner_cpu: 0
[ 9633.779626] Pid: 7170, comm: rmmod Not tainted
2.6.36-rc7-11474-gb71eb1e-dirty #328
[ 9633.779644] Call Trace:
[ 9633.779657] [<c13921cc>] ? printk+0x18/0x1c
[ 9633.779672] [<c11a1f33>] spin_bug+0xa3/0xf0
[ 9633.779685] [<c11a1ffd>] do_raw_spin_lock+0x7d/0x160
[ 9633.779702] [<c1131537>] ? release_sysfs_dirent+0x47/0xb0
[ 9633.779718] [<c1131b78>] ? sysfs_addrm_finish+0xa8/0xd0
[ 9633.779734] [<c1394bac>] _raw_spin_lock_irqsave+0xc/0x20
[ 9633.779752] [<f99d93da>] cleanup_one_si+0x6a/0x200 [ipmi_si]
[ 9633.779768] [<c11305b2>] ? sysfs_hash_and_remove+0x72/0x80
[ 9633.779786] [<f99dcf26>] ipmi_pnp_remove+0xd/0xf [ipmi_si]
[ 9633.779802] [<c11f622b>] pnp_device_remove+0x1b/0x40
Fix this by initializing spinlocks in a smi_info_alloc() helper function,
right after memory allocation and clearing.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: David Miller <davem@davemloft.net>
Cc: Yinghai Lu <yinghai@kernel.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-26 16:52:04 -07:00
..
2010-10-24 13:41:39 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 19:59:04 -07:00
2010-10-26 16:52:04 -07:00
2010-10-22 10:52:56 -07:00
2010-10-24 13:41:39 -07:00
2010-10-22 10:52:56 -07:00
2010-10-24 13:41:39 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:20:05 -07:00
2010-10-24 13:41:39 -07:00
2010-10-05 15:01:04 +02:00
2010-03-30 22:02:32 +09:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2009-01-06 15:59:30 -08:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2009-12-16 07:19:59 -08:00
2010-08-10 13:47:40 -07:00
2010-10-05 15:01:04 +02:00
2010-03-30 22:02:32 +09:00
2010-10-22 10:52:56 -07:00
2010-08-21 00:34:45 -07:00
2010-09-15 21:01:40 +02:00
2010-02-25 15:38:37 -08:00
2010-08-21 00:34:45 -07:00
2010-02-24 14:22:32 +10:30
2009-01-13 14:48:01 +11:00
2010-03-08 16:55:37 +01:00
2010-10-25 16:10:17 +02:00
2010-02-24 14:22:32 +10:30
2010-07-06 13:42:15 -04:00
2010-02-24 14:22:32 +10:30
2010-02-24 14:22:32 +10:30
2010-02-24 14:22:32 +10:30
2010-03-30 22:02:32 +09:00
2010-08-21 00:34:45 -07:00
2010-10-05 15:01:04 +02:00
2010-08-10 13:47:40 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:02 -07:00
2010-09-09 22:00:50 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:20:02 -07:00
2010-10-05 15:01:04 +02:00
2010-10-22 10:52:56 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:56 -07:00
2010-03-30 22:02:32 +09:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:05 -07:00
2010-08-11 08:59:20 -07:00
2010-08-10 13:47:43 -07:00
2010-10-18 11:03:14 +02:00
2010-08-10 13:47:39 -07:00
2010-10-22 10:20:05 -07:00
2010-10-05 15:01:04 +02:00
2010-10-15 15:53:27 +02:00
2010-10-05 15:01:04 +02:00
2010-10-15 15:53:27 +02:00
2010-10-05 15:01:04 +02:00
2010-05-27 22:05:02 -04:00
2010-10-22 10:19:58 -07:00
2010-05-27 09:12:50 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:56 -07:00
2010-08-10 13:47:40 -07:00
2009-01-02 10:19:39 -08:00
2010-08-23 18:17:21 -07:00
2009-01-02 10:19:39 -08:00
2010-08-06 09:25:50 -06:00
2009-02-22 09:23:02 -08:00
2010-10-15 15:53:27 +02:00
2010-08-10 13:47:44 -07:00
2009-10-11 11:20:58 -07:00
2010-08-10 13:47:44 -07:00
2010-03-30 22:02:32 +09:00
2010-10-22 10:52:56 -07:00
2010-03-30 22:02:32 +09:00
2010-08-10 13:47:44 -07:00
2010-10-24 13:41:39 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:20:05 -07:00
2010-10-25 07:59:01 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-03-30 22:02:32 +09:00
2010-05-21 09:34:30 -07:00
2010-10-22 10:20:04 -07:00
2010-08-10 13:47:39 -07:00
2010-08-10 13:47:44 -07:00
2010-08-10 13:47:44 -07:00
2010-08-10 13:47:44 -07:00
2010-10-22 10:20:02 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:06 -07:00
2010-10-22 10:52:56 -07:00
2010-10-21 17:44:04 +10:30
2010-03-30 22:02:32 +09:00
2010-08-28 21:39:09 -07:00
2010-10-22 10:20:06 -07:00