From: Dmitry Tarnyagin Date: Thu, 13 Oct 2011 11:29:24 +0000 (+0000) Subject: caif-hsi: Fix for wakeup condition problem X-Git-Tag: v3.2-rc1~182^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73033c987a8bd0b080509063bb7c130b8941ad73;p=pandora-kernel.git caif-hsi: Fix for wakeup condition problem Under stressed conditions a race could happen when del_timer_sync() was called from softirq context at the same time when mod_timer_pending() for the same timer was called from the workqueue. This leaded to a state mismatch in the CAIF HSI driver and following unexpected link wakeup procedure. The fix puts del_timer_sync() and mod_timer_pending() calls under a spin lock to protect against the race condition. Signed-off-by: Sjur Brændeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed