diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-07-25 16:16:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 16:16:56 +0300 |
| commit | 9b1ae87e7be9924083aa6d150c44d8341361002c (patch) | |
| tree | 7df8e49d058d91377cc97a2e41d41ba7fcb987d2 /hid-tmff2.c | |
| parent | 162a1f666c71eb5584ed6dae26b957f9405d33bc (diff) | |
| parent | 95680ede70a6c4d292f469b630e3c986620fd16a (diff) | |
| download | hid-tmff2-9b1ae87e7be9924083aa6d150c44d8341361002c.tar.gz hid-tmff2-9b1ae87e7be9924083aa6d150c44d8341361002c.zip | |
Merge pull request #44 from gou4shi1/master
Fixed `state->old` may be updated incorrectly.
Diffstat (limited to 'hid-tmff2.c')
| -rw-r--r-- | hid-tmff2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c index 12e8e25..24b663e 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -388,7 +388,7 @@ static int tmff2_upload(struct input_dev *dev, state->effect = *effect; if (old) { - if (test_bit(FF_EFFECT_QUEUE_UPDATE, &state->flags)) + if (!test_bit(FF_EFFECT_QUEUE_UPDATE, &state->flags)) state->old = *old; __set_bit(FF_EFFECT_QUEUE_UPDATE, &state->flags); |
