Jarek Poplawski
142092e577
fbcon: fix lockdep warning from fbcon_deinit()
Fix the lockdep warning:
[ 13.657164] INFO: trying to register non-static key.
[ 13.657169] the code is fine but needs lockdep annotation.
[ 13.657171] turning off the locking correctness validator.
[ 13.657177] Pid: 622, comm: modprobe Not tainted 2.6.36-rc3c #8
[ 13.657180] Call Trace:
[ 13.657194] [<c13002c8>] ? printk+0x18/0x20
[ 13.657202] [<c1056cf6>] register_lock_class+0x336/0x350
[ 13.657208] [<c1058bf9>] __lock_acquire+0x449/0x1180
[ 13.657215] [<c1059997>] lock_acquire+0x67/0x80
[ 13.657222] [<c1042bf1>] ? __cancel_work_timer+0x51/0x230
[ 13.657227] [<c1042c23>] __cancel_work_timer+0x83/0x230
[ 13.657231] [<c1042bf1>] ? __cancel_work_timer+0x51/0x230
[ 13.657236] [<c10582b2>] ? mark_held_locks+0x62/0x80
[ 13.657243] [<c10b3a2f>] ? kfree+0x7f/0xe0
[ 13.657248] [<c105853c>] ? trace_hardirqs_on_caller+0x11c/0x160
[ 13.657253] [<c105858b>] ? trace_hardirqs_on+0xb/0x10
[ 13.657259] [<c117f4cd>] ? fbcon_deinit+0x16d/0x1e0
[ 13.657263] [<c117f4cd>] ? fbcon_deinit+0x16d/0x1e0
[ 13.657268] [<c1042dea>] cancel_work_sync+0xa/0x10
[ 13.657272] [<c117f444>] fbcon_deinit+0xe4/0x1e0
...
The warning is caused by trying to cancel an uninitialized work from
fbcon_exit(). Fix it by adding a check for queue.func, similarly to other
places in this code.
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-22 17:22:39 -07:00
..
2010-09-07 16:00:17 -07:00
2010-09-09 22:31:55 -04:00
2010-09-09 00:49:43 +02:00
2010-09-21 11:49:17 +02:00
2010-09-22 17:22:38 -07:00
2010-09-17 20:08:21 -07:00
2010-08-26 12:46:03 +02:00
2010-09-08 21:25:55 +02:00
2010-09-09 18:57:24 -07:00
2010-09-21 09:14:55 +01:00
2010-09-14 10:58:42 +02:00
2010-09-17 17:24:15 +02:00
2010-09-22 01:06:58 +01:00
2010-09-19 11:06:34 -07:00
2010-09-08 14:43:28 -07:00
2010-08-31 18:28:15 -07:00
2010-08-24 15:28:28 +10:00
2010-09-17 13:53:28 +10:00
2010-08-24 10:42:08 -07:00
2010-09-22 17:22:38 -07:00
2010-09-09 18:57:23 -07:00
2010-09-14 17:05:39 -07:00
2010-09-19 11:05:50 -07:00
2010-08-25 09:09:09 +02:00
2010-09-07 16:00:17 -07:00
2010-09-15 17:57:09 +02:00
2010-08-24 10:42:09 -07:00
2010-09-08 14:35:10 +04:00
2010-09-06 11:14:47 +01:00
2010-09-22 17:22:39 -07:00
2010-09-10 07:26:27 -07:00
2010-09-09 09:58:18 -05:00
2010-09-20 16:30:00 -07:00
2010-09-08 22:50:10 -06:00
2010-09-20 16:31:54 -07:00
2010-09-20 16:05:00 -07:00
2010-09-06 09:49:39 +03:00
2010-09-22 17:22:39 -07:00
2010-09-15 18:43:58 +00:00
2010-08-28 13:55:31 -07:00
2010-09-17 10:23:08 -07:00