mISDN: Fix wrong usage of flush_work_sync while holding locks
authorKarsten Keil <keil@b1-systems.de>
Thu, 13 Sep 2012 04:36:20 +0000 (04:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2012 18:58:54 +0000 (14:58 -0400)
commit4b921eda53366b319602351ff4d7256fafa4bd1b
treea60091cf40391abd4eb1452dc840289bd05bfd19
parent930521695c183c8a4da8fe13ce231cf5263b8d98
mISDN: Fix wrong usage of flush_work_sync while holding locks

It is a bad idea to hold a spinlock and call flush_work_sync.
Move the workqueue cleanup outside the spinlock and use cancel_work_sync,
on closing the channel this seems to be the more correct function.
Remove the never used and constant return value of mISDN_freebchannel.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
Cc: <stable@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/avmfritz.c
drivers/isdn/hardware/mISDN/mISDNipac.c
drivers/isdn/hardware/mISDN/mISDNisar.c
drivers/isdn/hardware/mISDN/netjet.c
drivers/isdn/hardware/mISDN/w6692.c
drivers/isdn/mISDN/hwchannel.c
include/linux/mISDNhw.h