diff mbox

input: Fix wrong dimensions check for synaptics

Message ID s5hwrsy2ie2.wl%tiwai@suse.de (mailing list archive)
State Accepted
Commit bbddd199995ff55f1bb0336cadff4ee3d02b5a2c
Headers show

Commit Message

Takashi Iwai July 14, 2010, 3:27 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index 40cea33..9ba9c4a 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -206,6 +206,7 @@  static int synaptics_resolution(struct psmouse *psmouse)
 	unsigned char max[3];
 
 	if (SYN_ID_MAJOR(priv->identity) < 4)
+		return 0;
 
 	if (synaptics_send_cmd(psmouse, SYN_QUE_RESOLUTION, res) == 0) {
 		if (res[0] != 0 && (res[1] & 0x80) && res[2] != 0) {