]> git.baikalelectronics.ru Git - kernel.git/commit
mISDN: Do not disable IRQ in ph_data_ind()
authorKarsten Keil <keil@b1-systems.de>
Tue, 9 Jun 2009 12:38:39 +0000 (14:38 +0200)
committerKarsten Keil <keil@b1-systems.de>
Thu, 11 Jun 2009 17:05:18 +0000 (19:05 +0200)
commit30242ae3d0ae8b13a1a07addaaf1035548f16060
tree146094cf95bb3a57708cb1f302c6cf5580c5a4ba
parent4ff121a320c1873fd2e00170278668f4874c3b81
mISDN: Do not disable IRQ in ph_data_ind()

This fix triggering the WARN_ON_ONCE(in_irq() || irqs_disabled()); in
local_bh_enable().

Here is no need to grab this lock, this was wrong at all and may
cause a deadlock and access to freed memory, since on a TEI remove
the current listelement can be deleted under us. So this is clearly
a case for list_for_each_entry_safe.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
drivers/isdn/mISDN/tei.c