]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hvc_console: Fix free_irq in spinlocked section
authorChristian Borntraeger <borntraeger@de.ibm.com>
Sun, 12 Oct 2008 21:51:31 +0000 (21:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 14 Oct 2008 23:13:28 +0000 (10:13 +1100)
commiteef2622a9fcfa964073333ea72c7c9cd20ad45e6
tree39d698245b018baf78cb03a369bcde2051b68ff9
parentf5ea64dcbad89875d130596df14c9b25d994a737
hvc_console: Fix free_irq in spinlocked section

    commit 611e097d7707741a336a0677d9d69bec40f29f3d
    Author: Christian Borntraeger <borntraeger@de.ibm.com>
    hvc_console: rework setup to replace irq functions with callbacks
    introduced a spinlock recursion problem. The notifier_del is
    called with a lock held, and in turns calls free_irq which then
    complains when manipulating procfs. This fixes it by moving the
    call to the notifier to outside of the locked section.

Signed-off-by: Christian Borntraeger<borntraeger@de.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/hvc_console.c