J Jarek Poplawski #
Message details and related content
Hi, Here is a warning and a patch proposal below. Jarek P. [ 13.334829] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 13.350597] i915 0000:00:02.0: setting latency timer to 64 [ 13.382380] [drm] set up 7M of stolen space [ 13.420049] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 13.422851] [drm] initialized overlay support [ 13.655021] checking generic (f0000000 180000) vs hw (f0000000 8000000) [ 13.655055] fb: conflicting fb hw usage inteldrmfb vs VESA VGA - removing generic driver [ 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 [ 13.657280] [<c11cdf5c>] bind_con_driver+0x1ac/0x3d0 [ 13.657286] [<c1027e8b>] ? get_parent_ip+0xb/0x40 [ 13.657292] [<c102efe1>] ? release_console_sem+0x1d1/0x210 [ 13.657297] [<c11ce383>] unbind_con_driver+0x1b3/0x1f0 [ 13.657303] [<c1180fa5>] fbcon_event_notify+0x575/0x920 [ 13.657308] [<c105858b>] ? trace_hardirqs_on+0xb/0x10 [ 13.657314] [<c10582b2>] ? mark_held_locks+0x62/0x80 [ 13.657320] [<c1303370>] ? restore_all_notrace+0x0/0x18
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 84f8423..7ccc967 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c@@ -3508,7 +3508,7 @@ static void fbcon_exit(void) softback_buf = 0UL; for (i = 0; i < FB_MAX; i++) { - int pending; + int pending = 0; mapped = 0; info = registered_fb[i];
@@ -3516,7 +3516,8 @@ static void fbcon_exit(void) if (info = NULL) continue; - pending = cancel_work_sync(&info->queue); + if (info->queue.func) + pending = cancel_work_sync(&info->queue); DPRINTK("fbcon: %s pending work\n", (pending ? "canceled" : "no"));