diff options
author | Michael Büsch <m@bues.ch> | 2011-11-16 23:55:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-09 08:52:29 -0800 |
commit | 23e76fdc4cc34c116b37eedc2a3a8ecaa081541e (patch) | |
tree | 146b094dcea6b6a8816f317706fa3eb545809057 /mm | |
parent | 00b080367aca3dbb6191cbe522609d2055ea0fd8 (diff) |
p54spi: Fix workqueue deadlock
commit 2d1618170eb493d18f66f2ac03775409a6fb97c6 upstream.
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 <m@bues.ch>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions