Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119341
b: refs/heads/master
c: 8442c87
h: refs/heads/master
i:
  119339: 77b5c4b
v: v3
  • Loading branch information
Arjan van de Ven authored and Dmitry Torokhov committed Nov 24, 2008
1 parent e377b33 commit 13d13b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f4ba04ffd8fc9f6b15b92270ef0517ae52dcf3a
refs/heads/master: 8442c87d2f6c73cdc9a391e4dd9390523d242bda
5 changes: 3 additions & 2 deletions trunk/drivers/input/ff-memless.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ static int ml_ff_playback(struct input_dev *dev, int effect_id, int value)
{
struct ml_device *ml = dev->ff->private;
struct ml_effect_state *state = &ml->states[effect_id];
unsigned long flags;

spin_lock_bh(&ml->timer_lock);
spin_lock_irqsave(&ml->timer_lock, flags);

if (value > 0) {
debug("initiated play");
Expand All @@ -424,7 +425,7 @@ static int ml_ff_playback(struct input_dev *dev, int effect_id, int value)
ml_play_effects(ml);
}

spin_unlock_bh(&ml->timer_lock);
spin_unlock_irqrestore(&ml->timer_lock, flags);

return 0;
}
Expand Down

0 comments on commit 13d13b2

Please sign in to comment.