diff options
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
| -rw-r--r-- | drivers/hid/hid-multitouch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index c34e972f6296..5df5dd56ecc8 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c | |||
| @@ -637,6 +637,13 @@ static void mt_store_field(struct hid_device *hdev, | |||
| 637 | if (*target != DEFAULT_TRUE && | 637 | if (*target != DEFAULT_TRUE && |
| 638 | *target != DEFAULT_FALSE && | 638 | *target != DEFAULT_FALSE && |
| 639 | *target != DEFAULT_ZERO) { | 639 | *target != DEFAULT_ZERO) { |
| 640 | if (usage->contactid == DEFAULT_ZERO || | ||
| 641 | usage->x == DEFAULT_ZERO || | ||
| 642 | usage->y == DEFAULT_ZERO) { | ||
| 643 | hid_dbg(hdev, | ||
| 644 | "ignoring duplicate usage on incomplete"); | ||
| 645 | return; | ||
| 646 | } | ||
| 640 | usage = mt_allocate_usage(hdev, application); | 647 | usage = mt_allocate_usage(hdev, application); |
| 641 | if (!usage) | 648 | if (!usage) |
| 642 | return; | 649 | return; |
