Skip to contentSkip to conversation

Sun Keyboard driver

PATCH In review Erlend Aasland 2 participants 2 messages Feb 4, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Sun Keyboard driver

Hi,

I noticed a small bug in the sunkbd.c driver: After the keyboard name is set, it is mistakenly overwritten by serio->phys. Path is against 2.6.2.

Regards,
Erlend Aasland

input/keyboard/sunkbd.c renamed from input/keyboard/sunkbd.c~ +1 -1
@@ -275,7 +275,7 @@
 		set_bit(sunkbd->keycode[i], sunkbd->dev.keybit);
 	clear_bit(0, sunkbd->dev.keybit);
 
-	sprintf(sunkbd->name, "%s/input", serio->phys);
+	sprintf(sunkbd->phys, "%s/input", serio->phys);
 
 	sunkbd->dev.name = sunkbd->name;
 	sunkbd->dev.phys = sunkbd->phys;
#1 lore raw
Quoted 4 lines · Erlend Aasland

Hi,

I noticed a small bug in the sunkbd.c driver: After the keyboard name is set, it is mistakenly overwritten by serio->phys. Path is against 2.6.2.

Thanks for noticing, it's already fixed in my tree.

Quoted 16 lines

Regards,
Erlend Aasland

input/keyboard/sunkbd.c renamed from input/keyboard/sunkbd.c~ +1 -1
@@ -275,7 +275,7 @@
 		set_bit(sunkbd->keycode[i], sunkbd->dev.keybit);
 	clear_bit(0, sunkbd->dev.keybit);
 
-	sprintf(sunkbd->name, "%s/input", serio->phys);
+	sprintf(sunkbd->phys, "%s/input", serio->phys);
 
 	sunkbd->dev.name = sunkbd->name;
 	sunkbd->dev.phys = sunkbd->phys;
Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR