From: Michael Büsch Date: Wed, 16 Nov 2011 22:55:46 +0000 (+0100) Subject: p54spi: Fix workqueue deadlock X-Git-Tag: v3.2-rc5~56^2~46^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d1618170eb493d18f66f2ac03775409a6fb97c6;p=pandora-kernel.git p54spi: Fix workqueue deadlock priv->work must not be synced while priv->mutex is locked, because the mutex is taken in the work handler. Move cancel_work_sync down to after the device shutdown code. This is safe, because the work handler checks fw_state and bails out early in case of a race. Signed-off-by: Michael Buesch Cc: Acked-by: Christian Lamparter Signed-off-by: John W. Linville --- Reading git-diff-tree failed