]> git.baikalelectronics.ru Git - kernel.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)
commit716c8d4f16a61c16d7e2b5454150f2cbcb6d9f13
tree39d698245b018baf78cb03a369bcde2051b68ff9
parent59cd3b123cf71d2e74c8ade2fa5685c9ca38b867
hvc_console: Fix free_irq in spinlocked section

    commit 1576baf077ba71dc184bea91c5dc67c754df231c
    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