Input: HIL - fix rwlock recursion bug
authorHelge Deller <deller@gmx.de>
Fri, 16 Mar 2007 04:59:29 +0000 (00:59 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Fri, 16 Mar 2007 04:59:29 +0000 (00:59 -0400)
commit9575499dfebc0f0fbbf122223f02e9e92630661d
treed43f958bec192f127907ba393762a0a4728fea4c
parent5a90e5bca96696f1daa0bb0a9db299eb40241ada
Input: HIL - fix rwlock recursion bug

The following bug happens when insmoding hp_sdc_mlc.ko:

    HP SDC MLC: Registering the System Domain Controller's HIL MLC.
    BUG: rwlock recursion on CPU#0, hotplug/1814, 00854734
    Backtrace:
     [<10267560>] _raw_write_lock+0x50/0x88
     [<10104008>] _write_lock_irqsave+0x14/0x24
     [<008537d4>] hp_sdc_mlc_out+0x38/0x25c [hp_sdc_mlc]
     [<0084ebd8>] hilse_donode+0x308/0x470 [hil_mlc]
     [<0084ed80>] hil_mlcs_process+0x40/0x6c [hil_mlc]
     [<10130f80>] tasklet_action+0x78/0xb8
     [<10130cec>] __do_softirq+0x60/0xcc
     [<1010428c>] __lock_text_end+0x38/0x48
     [<10108348>] do_cpu_irq_mask+0xf0/0x11c
     [<1010b068>] intr_return+0x0/0xc

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/hil_mlc.c
drivers/input/serio/hp_sdc.c
drivers/input/serio/hp_sdc_mlc.c
include/linux/hp_sdc.h