From: Karsten Keil Date: Thu, 13 Sep 2012 04:36:20 +0000 (+0000) Subject: mISDN: Fix wrong usage of flush_work_sync while holding locks X-Git-Tag: v3.6-rc6~18^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b921eda53366b319602351ff4d7256fafa4bd1b;p=pandora-kernel.git 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 Cc: Signed-off-by: David S. Miller --- Reading git-diff-tree failed