Input: don't reset sync flag when ignoring event

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 27006fc..cae4811 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -241,7 +241,7 @@
 		break;
 	}
 
-	if (type != EV_SYN)
+	if (disposition != INPUT_IGNORE_EVENT && type != EV_SYN)
 		dev->sync = 0;
 
 	if ((disposition & INPUT_PASS_TO_DEVICE) && dev->event)