diff options
| author | Aaro Koskinen <[email protected]> | 2011-03-24 06:48:19 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2011-03-24 06:50:36 +0000 |
| commit | a0fa2206f550066d6948d43c5401e973e5f7d320 (patch) | |
| tree | 48afd4cf19e8b552e9f0a2c68eea87e4b662a680 /fs/ubifs/commit.c | |
| parent | Input: tsc2005 - use relative jiffies to schedule the watchdog (diff) | |
| download | kernel-a0fa2206f550066d6948d43c5401e973e5f7d320.tar.gz kernel-a0fa2206f550066d6948d43c5401e973e5f7d320.zip | |
Input: tsc2005 - fix locking issue
Commit 0b950d3 (Input: tsc2005 - add open/close) introduced a
locking issue with the ESD watchdog: __tsc2005_disable() is calling
cancel_delayed_work_sync() with mutex held, and the work also needs the
same mutex.
Fix the problem by using mutex_trylock() in tsc2005_esd_work(). If the
mutex is taken, we know we are in the middle of disable or enable and
the watchdog check can be skipped.
Signed-off-by: Aaro Koskinen <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions
