Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119329
b: refs/heads/master
c: 211f05a
h: refs/heads/master
i:
  119327: 4e77d53
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Nov 30, 2008
1 parent e826344 commit dfc8015
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: 02d0e6753d8ab0173b63338157929e52eac86d12
refs/heads/master: 211f05a034f49586fdd071abd174853217ec29ee
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 dfc8015

Please sign in to comment.