[PATCH] Sun Keyboard driver

From: Erlend Aasland
Date: Wed Feb 04 2004 - 06:53:40 EST


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

--- drivers/input/keyboard/sunkbd.c~ 2004-02-04 13:06:44.603610000 +0100
+++ drivers/input/keyboard/sunkbd.c 2004-02-04 13:09:00.603610000 +0100
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/