Skip to contentSkip to conversation

input: Fix wrong dimensions check for synaptics

PATCH In review Takashi Iwai 2 participants 2 messages Jul 14, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: Fix wrong dimensions check for synaptics

The commit 83ba9ea8a04b72dfee2515428c15e7414ba4fc61 ommitted the return line for the old synaptics model accidentally. This resulted in a wrong check, namely, the dimensions are checked for the old devices that don't support the query properly.

This patch adds the return line back.

---
 drivers/input/mouse/synaptics.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/input/mouse/synaptics.c +1 -0
index 40cea33..9ba9c4a 100644
@@ -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) {
Signature · 1 line
1.7.0.2
maintainer
#1 lore raw
Quoted 6 lines · Takashi Iwai

The commit 83ba9ea8a04b72dfee2515428c15e7414ba4fc61 ommitted the return line for the old synaptics model accidentally. This resulted in a wrong check, namely, the dimensions are checked for the old devices that don't support the query properly.

This patch adds the return line back.

Oops. Thanks Takashi, applied.

Signature · 1 line
Dmitry